Iterating well with purrr

An R-Ladies workshop

Shannon Pileggi true
2022-06-08
on gray background: purrr::map(.x, .f, ...) for every element of .x do .f

Figure 1: Slide from the workshop.

slides
recording

Overview

A zoom workshop on iterating well with purrr for R-Ladies Rabat.

Under the Creative Commons Share Alike 4.0 International license, workshop materials have been adapted from the 2020 RStudio What They Forgot To Teach You About R Workshop.

Abstract

In this workshop we discuss approaches to iteration in R. We briefly discuss iterative techniques that do not require loops or purrr::map_ (for example, group_by, vectorized functions, etc.). Then we explore lists as an object to store information of varying types and sizes and explain how to extract elements from a list via the purrr::map_ family.

Citation

For attribution, please cite this work as

Pileggi (2022, June 8). PIPING HOT DATA: Iterating well with purrr. Retrieved from https://www.pipinghotdata.com/workshops/2022-06-08-iterating-well-with-purrr/

BibTeX citation

@misc{pileggi2022iterating,
  author = {Pileggi, Shannon},
  title = {PIPING HOT DATA: Iterating well with purrr},
  url = {https://www.pipinghotdata.com/workshops/2022-06-08-iterating-well-with-purrr/},
  year = {2022}
}