Learn R Programming

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

plyr (version 1.5.2)

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.2

License

MIT

Maintainer

Hadley Wickham

Last Published

April 24th, 2011

Functions in plyr (1.5.2)

amv_dim

Dimensions.
as.quoted

Convert input to quoted variables.
progress_win

Graphical progress bar, powered by Windows.
progress_text

Text progress bar.
join

Join two data frames together.
progress_none

Null progress bar...
liply

Experimental iterator based version of llply.
summarise

Summarise a data frame.
count

Count the number of occurences.
indexed_array

An indexed array.
aaply

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

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

Replicate expression and return results in a list.
splitter_a

Split an array by...
amv_dimnames

Dimension names.
is.formula

Is a formula?
print.quoted

Print quoted variables.
colwise

Column-wise function.
list_to_array

List to array.
splitter_d

Split a data frame by variables.
id_var

Numeric id for a vector.
defaults

Set defaults.
mutate

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

Fail with specified value.
splat

`Splat' arguments to a function.
true

Function that always returns true.
adply

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

Descending order.
join.keys

Join keys.
dlply

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

An indexed data frame.
list_to_dataframe

List to data frame.
print.split

Print split.
maply

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

Loop apply...
daply

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

Generate labels for split data frame.
rename

Modify names by name, not position.
quickdf

Quick data frame.
d_ply

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

Replicate expression and return results in a array.
try_default

Try, with default in case of error.
split_indices

Split indices.
list_to_vector

List to vector.
eval.quoted

Evaluate a quoted list of variables.
as.list.split

Convert split list to regular list.
mlply

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

Construct an immutable data frame.
progress_tk

Graphical progress bar, powered by Tk.
quoted

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

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

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

Apply with built in try.
match_df

Extract matching rows of a data frame.
unrowname

Un-rowname.
alply

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

Make a function return a data frame.
is.discrete

Determine if a vector is discrete.
vaggregate

Vector aggregate.
dims

Number of dimensions.
ldply

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

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

Split iterator that returns values, not indices.
get-split

Subset splits.
a_ply

Split array, apply function, and discard results.
rdply

Replicate expression and return results in a data frame.
reduce_dim

Reduce dimensions.
empty

Check if a data frame is empty.
nunique

Number of unique values.
rbind.fill.matrix

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

Combine data...
ddply

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

Round to multiple of any number.
create_progress_bar

Create progress bar.
each

Aggregate multiple functions into a single function.
arrange

Order a data frame by its colums.
compact

Compact list.
names.quoted

Compute names of quoted variables.
strip_splits

Remove splitting variables from a data frame.
llply

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

Split list, apply function, and discard results.
r_ply

Replicate expression and discard results.