Learn R Programming

⚠️There's a newer version (1.8.9) of this package.Take me there.

plyr (version 1.4.1)

Tools for splitting, applying and combining data

Description

plyr is a set of tools that solves a common set of problems: you need to break a big problem down into manageable pieces, operate on each pieces and then put all the pieces back together. For example, you might want to fit a model to each spatial location or time point in your study, summarise data by panels or collapse high-dimensional arrays to simpler summary statistics. The development of plyr has been generously supported by BD (Becton Dickinson).

Copy Link

Version

Install

install.packages('plyr')

Monthly Downloads

462,768

Version

1.4.1

License

MIT

Maintainer

Hadley Wickham

Last Published

April 5th, 2011

Functions in plyr (1.4.1)

amv_dimnames

Dimension names.
aaply

Split array, apply function, and return results in an array.
get1-idf

Immutable df subsetting...
compact

Compact list.
as.list.split

Convert split list to regular list.
join.keys

Join keys.
maply

Call function with arguments in array or data frame, returning an array.
daply

Split data frame, apply function, and return results in an array.
dims

Number of dimensions.
count

Count the number of occurences.
colwise

Column-wise function.
failwith

Fail with specified value.
l_ply

Split list, apply function, and discard results.
adply

Split array, apply function, and return results in a data frame.
mdply

Call function with arguments in array or data frame, returning a data frame.
is.formula

Is a formula?
empty

Check if a data frame is empty.
d_ply

Split data frame, apply function, and discard results.
ldply

Split list, apply function, and return results in a data frame.
progress_win

Graphical progress bar, powered by Windows.
ddply

Split data frame, apply function, and return results in a data frame.
get-split

Subset splits.
names.idf

Immutable df names.
nunique

Number of unique values.
quickdf

Quick data frame.
dim.idf

Immutable df dimensions.
list_to_dataframe

List to data frame.
splitter_a

Split an array by...
split_indices

Split indices.
progress_none

Null progress bar...
print.split

Print split.
rdply

Replicate expression and return results in a data frame.
names.quoted

Compute names of quoted variables.
try_default

Try, with default in case of error.
arrange

Order a data frame by its colums.
split_labels

Generate labels for split data frame.
id_var

Numeric id for a vector.
quoted

Quote variables.
list_to_array

List to array.
rlply

Replicate expression and return results in a list.
a_ply

Split array, apply function, and discard results.
rbind.fill

Combine data...
print.quoted

Print quoted variables.
each

Aggregate multiple functions into a single function.
as.data.frame.function

Make a function return a data frame.
list_to_vector

List to vector.
amv_dim

Dimensions.
desc

Descending order.
tryapply

Apply with built in try.
join

Join two data frames together.
get2-idf

Extract single column from immutable data frame.
progress_tk

Graphical progress bar, powered by Tk.
summarise

Summarise a data frame.
r_ply

Replicate expression and discard results.
liply

Experimental iterator based version of llply.
is.discrete

Determine if a vector is discrete.
as.quoted

Convert input to quoted variables.
laply

Split list, apply function, and return results in an array.
mlply

Call function with arguments in array or data frame, returning a list.
splitter_d

Split a data frame by variables.
rbind.fill.matrix

Bind matrices by row, and fill missing columns with NA.
indexed_array

An indexed array.
indexed_df

An indexed data frame.
id

A unique numeric id for each unique row in a data frame.
splat

`Splat' arguments to a function.
defaults

Set defaults.
true

Function that always returns true.
unrowname

Un-rowname.
vaggregate

Vector aggregate.
as.data.frame.idf

Convert immutable df to regular data frame.
eval.quoted

Evaluate a quoted list of variables.
isplit2

Split iterator that returns values, not indices.
llply

Split list, apply function, and return results in a list.
mutate

Mutate a data frame by adding new columns or replacing existing.
round_any

Round to multiple of any number...
reduce_dim

Reduce dimensions.
m_ply

Call function with arguments in array or data frame, discarding results.
create_progress_bar

Create progress bar.
loop_apply

Loop apply...
raply

Replicate expression and return results in a array.
dlply

Split data frame, apply function, and return results in a list.
alply

Split array, apply function, and return results in a list.
idata.frame

Construct an immutable data frame.
progress_text

Text progress bar.
Baseball batting

Yearly batting records for all major league baseball players
Ozone measurements

Monthly ozone measurements over Central America