If you want to follow along the presentation, the script where the purrr part is blanked out is here. And the full script with all the codes, and the answer to the exercise can be downloaded here.
Download the R code used in this presentation at this Github repository https://github.com/ufrmeetup/heslar.
link to data Introduction to using for loops What Are Loops? “Looping”, “cycling”, “iterating” or just replicating instructions is an old practice that originated well before the invention of computers. It is nothing more than automating a multi-step process by organizing sequences of actions or ‘batch’ processes and by grouping the parts that need to be repeated. All modern programming languages provide special constructs that allow for the repetition of instructions or blocks of instructions.