Functional programming with purrr

Photo by Jonathan Fink on Unsplash


One of R’s most powerful features is that it’s a functional programming language. purrr is a consistent and efficient toolkit for programming with functions and working with lists. At its heart is map() and friends: functions for the common pattern of iterating over a vector or list, doing something to each element, and then storing the results. These functions let you iterate efficiently and with less code. As Jenny Bryan once said, “of course someone needs to write for loops; it doesn’t have to be you.

Sep 26, 2019 6:30 PM
Los Angeles, CA
Malcolm Barrett
Clinical Research Data Scientist

I am a data scientist, an R developer, and an epidemiologist. My work in public health has spanned on-ground clinical education and research for clinical and cohort studies. Previously, I was an intern at RStudio, and I served two years in AmeriCorps at federally-qualified health centers in Michigan and New York City.
Sponsor me on GitHub