plyr is an R package with tools to solve a variety of problems using the split-apply-combine strategy
plyr
is an R package written by Hadley Wickham which contains tools to solve a variety of problems using the strategy of split, apply and combine:
- Split a data structure (data frame, list, array) into smaller pieces;
- Apply a function to each piece; then
- Combine the results into a data structure.
It partially replaces the apply
family of functions (lapply
, tapply
, Map
, etc.) in base-R, and is partially succeeded by dplyr.
Repositories
Other resources
- The Split-Apply-Combine Strategy for Data Analysis by Hadley Wickham in the Journal of Statistical Software
- Data visualisation in R with ggplot2 and plyr course
- Tutorial from useR2009 conference
- manipulatr Google Group
- Posts on R-bloggers
Related tags
- r's dplyr and data.table packages