8 Introduction

It’s often useful to apply the same function to every element of a vector, list, or tibble. The purrr package contains a set of useful functions for iterating over data structures and performing the same action at each element. In this section, we’ll introduce some of the most useful purrr functions and explain how to apply them in different situations.