Iteration is a powerful way to make the computer do the work for you. It can also be an area of coding where it is easy to make lots of typos and simple mistakes. The purrr package helps simplify iteration so you can focus on the next step, instead of finding typos.
purrr is much more than a for loop; it works well with pipes, we can use it to run models and simulate data, and make nested loops!
Like anything in R, understanding how to troubleshoot issues is an important skill set. This can be particularly important with lists, where finding the problem can be tricky.
Now that you have the building blocks, we will start tackling some more complex data problems with purrr.