Lecture 10
Overview
- Introduce iterative operations with loops
- Introduce R-specific functions for looping (e.g.,
map()
functions, anddplyr::across()
)
Readings
- Review Chapter 13 “Control Structures” in “R programming for Data Science” from last lecture (Notice this is not our regular book!)
- Read “Chapter 26 Iteration” from “R for Data Science” 2nd Edition.
- R-specific functions for looping:
- "
purrr
package" formap()
functions *across()
fromdplyr
package
- "
Class materials
Run the code below in your console to download today’s in-class exercises: usethis::use_course("css-materials/loops")