Book description
An Essential Reference for Intermediate and Advanced R Programmers
Advanced R presents useful tools and techniques for attacking many types of R programming problems, helping you avoid mistakes and dead ends. With more than ten years of experience programming in R, the author illustrates the elegance, beauty, and flexibility at the heart of R.
The book develops the necessary skills to produce quality code that can be used in a variety of circumstances. You will learn:
- The fundamentals of R, including standard data types and functions
- Functional programming as a useful framework for solving wide classes of problems
- The positives and negatives of metaprogramming
- How to write fast, memory-efficient code
This book not only helps current R users become R programmers but also shows existing programmers what’s special about R. Intermediate R programmers can dive deeper into R and learn new strategies for solving diverse problems while programmers from other languages can learn the details of R and understand why R works the way it does.
Table of contents
- Preliminaries
- Dedication
- Chapman & Hall/CRC: The R Series
- Chapter 1 - Introduction
-
Section I - Foundations
- Chapter 2 - Data structures
-
Chapter 3 - Subsetting
- 3.1 Data types
- 3.2 Subsetting operators
- 3.3 Subsetting and assignment
-
3.4 Applications
- 3.4.1 Lookup tables (character subsetting)
- 3.4.2 Matching and merging by hand (integer subsetting)
- 3.4.3 Random samples/bootstrap (integer subsetting)
- 3.4.4 Ordering (integer subsetting)
- 3.4.5 Expanding aggregated counts (integer subsetting)
- 3.4.6 Removing columns from data frames (character subsetting)
- 3.4.7 Selecting rows based on a condition (logical subsetting)
- 3.4.8 Boolean algebra vs. sets (logical & integer subsetting)
- 3.4.9 Exercises
- 3.5 Answers
- Chapter 4 - Vocabulary
- Chapter 5 - Style guide
- Chapter 6 - Functions
- Chapter 7 - OO field guide
- Chapter 8 - Environments
- Chapter 9 - Debugging, condition handling, and defensive programming
-
Section II - Functional programming
- Chapter 10 - Functional programming
- Chapter 11 - Functionals
- Chapter 12 - Function operators
-
Section III - Computing on the language
- Chapter 13 - Non-standard evaluation
- Chapter 14 - Expressions
- Chapter 15 - Domain specific languages
-
Section IV - Performance
- Chapter 16 - Performance
- Chapter 17 - Optimising code
- Chapter 18 - Memory
- Chapter 19 - High performance functions with Rcpp
- Chapter 20 - R's C interface
Product information
- Title: Advanced R
- Author(s):
- Release date: September 2015
- Publisher(s): CRC Press
- ISBN: 9781498759809
You might also like
video
Advanced R Programming
Overview Alternative Backends for R LiveLessons teaches R programmers techniques for dealing with large data, both …
video
Shiny R
4+ Hours of Video Instruction Create visual, interactive, data-based web applications without having to be a …
book
Learning R
Learn how to perform data analysis with the R language and software environment, even if you …
book
The R Book
The high-level language of R is recognized as one of the most powerful and flexible statistical …