Files
developer-roadmap/roadmaps/r-programming/content/purrr@KXvrYvFvyAqFbJeS1KHRi.md
T
2026-09-07 09:38:00 +00:00

815 B

purrr

purrr applies a function to each element of a list or vector and collects the results, similar in spirit to base R's apply family but with more consistent, predictable behavior. Its map() function always returns a list, while variants like map_dbl() return a vector of a specific type, making the expected output explicit. It fits naturally with the pipe operator and tidyverse style, letting you iterate without writing explicit loops.

Visit the following resources to learn more: