Learn R Programming

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

plyr (version 1.5.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,444

Version

1.5.1

License

MIT

Maintainer

Hadley Wickham

Last Published

April 13th, 2011

Functions in plyr (1.5.1)

failwith

Fail with specified value.
amv_dim

Dimensions.
empty

Check if a data frame is empty.
a_ply

Split array, apply function, and discard results.
as.quoted

Convert input to quoted variables.
desc

Descending order.
as.list.split

Convert split list to regular list.
isplit2

Split iterator that returns values, not indices.
compact

Compact list.
indexed_df

An indexed data frame.
l_ply

Split list, apply function, and discard results.
join

Join two data frames together.
alply

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

Count the number of occurences.
aaply

Split array, apply function, and return results in an array.
round_any

Round to multiple of any number.
is.formula

Is a formula?
quoted

Quote variables to create a list of unevaluated expressions for later...
print.quoted

Print quoted variables.
rlply

Replicate expression and return results in a list.
loop_apply

Loop apply...
mdply

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

Split indices.
progress_tk

Graphical progress bar, powered by Tk.
maply

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

Quick data frame.
dlply

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

Evaluate a quoted list of variables.
amv_dimnames

Dimension names.
adply

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

Create progress bar.
nunique

Number of unique values.
summarise

Summarise a data frame.
print.split

Print split.
split_labels

Generate labels for split data frame.
arrange

Order a data frame by its colums.
mutate

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

Set defaults.
daply

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

Number of dimensions.
ddply

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

Try, with default in case of error.
each

Aggregate multiple functions into a single function.
progress_none

Null progress bar...
names.quoted

Compute names of quoted variables.
id

Compute a unique numeric id for each unique row in a data frame.
rbind.fill

Combine data...
vaggregate

Vector aggregate.
raply

Replicate expression and return results in a array.
r_ply

Replicate expression and discard results.
liply

Experimental iterator based version of llply.
ldply

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

Numeric id for a vector.
idata.frame

Construct an immutable data frame.
progress_text

Text progress bar.
mlply

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

Column-wise function.
rename

Modify names by name, not position.
llply

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

List to vector.
list_to_array

List to array.
strip_splits

Remove splitting variables from a data frame.
list_to_dataframe

List to data frame.
progress_win

Graphical progress bar, powered by Windows.
reduce_dim

Reduce dimensions.
true

Function that always returns true.
match_df

Extract matching rows of a data frame.
rdply

Replicate expression and return results in a data frame.
splitter_d

Split a data frame by variables.
unrowname

Un-rowname.
indexed_array

An indexed array.
get-split

Subset splits.
join.keys

Join keys.
is.discrete

Determine if a vector is discrete.
splitter_a

Split an array by...
splat

`Splat' arguments to a function.
tryapply

Apply with built in try.
as.data.frame.function

Make a function return a data frame.
rbind.fill.matrix

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

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

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

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

Monthly ozone measurements over Central America
Baseball batting

Yearly batting records for all major league baseball players