Functional Data Structures in R: Advanced Statistical Programming in R
โ Scribed by Thomas Mailund (auth.)
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 262
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Get an introduction to functional data structures using R and write more effective code and gain performance for your programs. This book teaches you workarounds because data in functional languages is not mutable: for example youโll learn how to change variable-value bindings by modifying environments, which can be exploited to emulate pointers and implement traditional data structures. Youโll also see how, by abandoning traditional data structures, you can manipulate structures by building new versions rather than modifying them. Youโll discover how these so-called functional data structures are different from the traditional data structures you might know, but are worth understanding to do serious algorithmic programming in a functional language such as R.
By the end of Functional Data Structures in R, youโll understand the choices to make in order to most effectively work with data structures when you cannot modify the data itself. These techniques are especially applicable for algorithmic development important in big data, finance, and other data science applications.
What You'll Learn
- Carry out algorithmic programming in R
- Use abstract data structures
- Work with both immutable and persistent data
- Emulate pointers and implement traditional data structures in R
- Build new versions of traditional data structures that are known
Who This Book Is For
Experienced or advanced programmers with at least a comfort level with R. Some experience with data structures recommended.
โฆ Table of Contents
Front Matter ....Pages i-xii
Introduction (Thomas Mailund)....Pages 1-2
Abstract Data Structures (Thomas Mailund)....Pages 3-23
Immutable and Persistent Data (Thomas Mailund)....Pages 25-66
Bags, Stacks, and Queues (Thomas Mailund)....Pages 67-133
Heaps (Thomas Mailund)....Pages 135-187
Sets and Search Trees (Thomas Mailund)....Pages 189-245
Back Matter ....Pages 247-256
โฆ Subjects
Programming Techniques
๐ SIMILAR VOLUMES
<p>Master functions and discover how to write functional programs in R. In this concise book, you'll make your functions pure by avoiding side-effects; youโll write functions that manipulate other functions, and youโll construct complex functions using simpler functions as building blocks.<br>In <i>
<span>Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks.<br
<span>Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks.<br