Skip to content
/ plyr Public
forked from hadley/plyr

A R package for splitting, applying and combining large problems into simpler problems

Notifications You must be signed in to change notification settings

wch/plyr

This branch is 439 commits behind hadley/plyr:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 28, 2011
ecf63b6 · Dec 28, 2011
Dec 28, 2011
Jul 28, 2010
Mar 3, 2011
Dec 6, 2011
Jul 29, 2011
Dec 28, 2011
Oct 30, 2011
Sep 5, 2010
Jul 3, 2010
Mar 2, 2011
Dec 28, 2011
Dec 23, 2011
Dec 28, 2011
Apr 9, 2011

Repository files navigation

plyr

plyr is a set of tools for a common set of problems: you need to split up a big data structure into homogeneous pieces, apply a function to each piece and then combine all the results back together. For example, you might want to:

  • fit the same model each patient subsets of a data frame
  • quickly calculate summary statistics for each group
  • perform group-wise transformations like scaling or standardising

It's already possible to do this with base R functions (like split and the apply family of functions), but plyr makes it all a bit easier with:

  • totally consistent names, arguments and outputs
  • convenient parallelisation through the foreach package
  • input from and output to data.frames, matrices and lists
  • progress bars to keep track of long running operations
  • built-in error recovery, and informative error messages
  • labels that are maintained across all transformations

Considerable effort has been put into making plyr fast and memory efficient, and in many cases plyr is as fast as, or faster than, the built-in equivalents.

A detailed introduction to plyr has been published in JSS: "The Split-Apply-Combine Strategy for Data Analysis", http://www.jstatsoft.org/v40/i01/. You can find out more at http://had.co.nz/plyr/, or track development at http://github.com/hadley/plyr. You can ask questions about plyr (and data manipulation in general) on the plyr mailing list. Sign up at http://groups.google.com/group/manipulatr.

About

A R package for splitting, applying and combining large problems into simpler problems

Resources

Citation

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 98.8%
  • C 1.2%