Metaprogramming in R: Advanced Statistical Programming for Data Science, Analysis and Finance
โ Scribed by Thomas Mailund (auth.)
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 106
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Learn how to manipulate functions and expressions to modify how the R language interprets itself. This book is an introduction to metaprogramming in the R language, so you will write programs to manipulate other programs. Metaprogramming in R shows you how to treat code as data that you can generate, analyze, or modify.
R is a very high-level language where all operations are functions and all functions are data that can be manipulated. This book shows you how to leverage R's natural flexibility in how function calls and expressions are evaluated, to create small domain-specific languages to extend R within the R language itself.
What You'll Learn
- Find out about the anatomy of a function in R
- Look inside a function call
- Work with R expressions and environments
- Manipulate expressions in R
- Use substitutions
Those with at least some experience with R and certainly for those with experience in other programming languages.
โฆ Table of Contents
Front Matter....Pages i-xi
Anatomy of a Function....Pages 1-15
Inside a Function Call....Pages 17-33
Expressions and Environments....Pages 35-55
Manipulating Expressions....Pages 57-75
Working with Substitutions....Pages 77-97
Back Matter....Pages 99-103
โฆ Subjects
Programming Techniques;Programming Languages, Compilers, Interpreters;Probability and Statistics in Computer Science
๐ 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
<p>Learn how to write object-oriented programs in R and how to construct classes and class hierarchies in the three object-oriented systems available in R. This book gives an introduction to object-oriented programming in the R programming language and shows you how to use and apply R in an object-o
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. In Fu