# purrr

> Functional programming tools for R

Source: https://talira.ai/catalog/purrr-yt5988md
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / r](https://talira.ai/categories/languages/r)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Posit](https://talira.ai/orgs/posit.md)
- Creator: Hadley Wickham

purrr is the tidyverse's package for functional programming in R: a complete and consistent set of tools for working with functions and vectors. Its family of map() functions replaces many for loops with shorter code that's easier to read, mapping a function over a list or vector and returning a list or a vector of a chosen type, with variants for two inputs, many inputs and side effects. It's installed with the tidyverse or on its own from CRAN.

## Links

- Website: https://purrr.tidyverse.org/
- GitHub: https://github.com/tidyverse/purrr
- Docs: https://purrr.tidyverse.org/

## Problems it solves

- replace for loops in my R code with something shorter and easier to read
- apply a function to every element of a list in R and get a vector back
- fit a model to each group of a data frame in R

## Features

- map() family over lists and vectors
- typed results: map_chr, map_dbl, map_lgl
- map2 and pmap for several inputs
- walk() for side effects
- part of the tidyverse

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.79, adoption 0.63, momentum 0.31, community 0.84, backing 0.50, extensibility 0.00.

- last commit 26 days ago
- 29 commits in the last 90 days
- latest release v1.2.2 7 months ago
- 1.4k GitHub stars
- 126 contributors
- backed by Posit
- created by Hadley Wickham

## Sources

[^1]: https://github.com/tidyverse/purrr/blob/main/LICENSE.md (checked 26 Nov 2026)
