A grammar of data manipulation for data frames in R
open sourceMITfree
dplyr is an R package for transforming data frames with a small set of verbs: mutate() adds columns computed from others, select() picks columns, filter() picks rows, summarise() reduces groups to summaries and arrange() orders rows, all combined with group_by() to work by group, plus joins and other two-table verbs. The same code runs on other backends through companion packages: dbplyr translates it to SQL for databases, dtplyr to data.table, duckplyr to DuckDB queries, arrow for larger-than-memory data and sparklyr for Apache Spark. It's part of the tidyverse, developed by its core team with Posit as funder, and runs anywhere R does.
Problems it solves
- filter, group and summarise a data frame in R without writing loops
- join two tables and compute new columns in R
- write the same data transformation code against a database or a data frame in R
Features
- mutate, select, filter, summarise and arrange verbs
- grouped operations with group_by
- joins and other two-table verbs
- column-wise and row-wise operations
- database backend through dbplyr (SQL translation)
- data.table, DuckDB, Arrow and Spark backends
Alternatives
The same job
These do what dplyr does.
