Iteration
module 6
week 10
for loops
iteration
map
Use iteration for applying functions across data
Functions reduce repetition in code, but you may need to iterate to apply the function across multiple objects.
Learning objectives
- Create for loops
- Apply functions repeatedly across data with map()
- Apply the same model across multiple data sets
- Apply the same plot across multiple data sets
- Import multiple data files simultaneously
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R4DS2 27
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises