Book description
Gain an accelerated introduction to domain-specific languages in R, including coverage of regular expressions. This compact, in-depth book shows you how DSLs are programming languages specialized for a particular purpose, as opposed to general purpose programming languages. Along the way, you’ll learn to specify tasks you want to do in a precise way and achieve programming goals within a domain-specific context.
Domain-Specific Languages in R includes examples of DSLs including large data sets or matrix multiplication; pattern matching DSLs for application in computer vision; and DSLs for continuous time Markov chains and their applications in data science. After reading and using this book, you’ll understand how to write DSLs in R and have skills you can extrapolate to other programming languages.
What You'll Learn
- Program with domain-specific languages using R
- Discover the components of DSLs
- Carry out large matrix expressions and multiplications
- Implement metaprogramming with DSLs
- Parse and manipulate expressions
Who This Book Is For
Those with prior programming experience. R knowledge is helpful but not required.
Table of contents
- Cover
- Front Matter
- 1. Introduction
- 2. Matrix Expressions
- 3. Components of a Programming Language
- 4. Functions, Classes, and Operators
- 5. Parsing and Manipulating Expressions
- 6. Lambda Expressions
- 7. Environments and Expressions
- 8. Tidy Evaluation
- 9. List Comprehension
- 10. Continuous-Time Markov Chains
- 11. Pattern Matching
- 12. Dynamic Programming
- 13. Conclusion
- Back Matter
Product information
- Title: Domain-Specific Languages in R: Advanced Statistical Programming
- Author(s):
- Release date: June 2018
- Publisher(s): Apress
- ISBN: 9781484235881
You might also like
book
Functional Data Structures in R: Advanced Statistical Programming in R
Get an introduction to functional data structures using R and write more effective code and gain …
book
CRAN Recipes: DPLYR, Stringr, Lubridate, and RegEx in R
Want to use the power of R sooner rather than later? Don’t have time to plow …
book
Deep Learning through Sparse and Low-Rank Modeling
Deep Learning through Sparse Representation and Low-Rank Modeling bridges classical sparse and low rank models—those that …
book
Dynamic Documents with R and knitr, 2nd Edition
Quickly and Easily Write Dynamic Documents Suitable for both beginners and advanced users, Dynamic Documents with …