12.7 Resources
This section provides pointers to resources on iteration, loops, and functional programming.
12.7.1 Resources on iteration
See Chapter 21: Iteration of r4ds (Wickham & Grolemund, 2017) and its exercises.
For loops in general, see the contributed cheatsheets on Base R and Advanced R.
12.7.2 Resources on functional programming
- For references on functional programming (FP) with purrr (Henry & Wickham, 2023), see https://purrr.tidyverse.org and the purrr cheatsheet:
- The two editions of Advanced R (Wickham, 2014a, 2019) contain several chapters on functions and functional programming.
References
Henry, L., & Wickham, H. (2023). purrr: Functional programming tools. Retrieved from https://CRAN.R-project.org/package=purrr
Wickham, H. (2014a). Advanced R (1st ed.). Retrieved from http://adv-r.had.co.nz/
Wickham, H. (2019). Advanced R (2nd ed.). Retrieved from https://adv-r.hadley.nz/
Wickham, H., & Grolemund, G. (2017). R for data science: Import, tidy, transform, visualize, and model data. Retrieved from http://r4ds.had.co.nz