Learn R Programming

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

plyr (version 1.8.3)

Tools for Splitting, Applying and Combining Data

Description

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 piece 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 'Becton Dickinson'.

Copy Link

Version

Install

install.packages('plyr')

Monthly Downloads

345,998

Version

1.8.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

June 12th, 2015

Functions in plyr (1.8.3)

eval.quoted

Evaluate a quoted list of variables.
ddply

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

Split array, apply function, and discard results.
isplit2

Split iterator that returns values, not indices.
id

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

Split array, apply function, and return results in an array.
[.split

Subset splits.
rdply

Replicate expression and return results in a data frame.
amv_dim

Dimensions.
create_progress_bar

Create progress bar.
each

Aggregate multiple functions into a single function.
revalue

Replace specified values with new values, in a factor or character vector.
r_ply

Replicate expression and discard results.
failwith

Fail with specified value.
rbind.fill

Combine data.frames by row, filling in missing columns.
join

Join two data frames together.
vaggregate

Vector aggregate.
indexed_array

An indexed array.
plyr

plyr: the split-apply-combine paradigm for R.
mutate

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

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

Check if a data frame is empty.
is.discrete

Determine if a vector is discrete.
here

Capture current evaluation context.
defaults

Set defaults.
progress_tk

Graphical progress bar, powered by Tk.
splitter_a

Split an array by .margins.
list_to_array

List to array.
strip_splits

Remove splitting variables from a data frame.
ozone

Monthly ozone measurements over Central America.
alply

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

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

Number of dimensions.
summarise

Summarise a data frame.
print.split

Print split.
count

Count the number of occurences.
unrowname

Un-rowname.
raply

Replicate expression and return results in a array.
baseball

Yearly batting records for all major league baseball players
plyr-deprecated

Deprecated Functions in Package plyr
dlply

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

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

Toggle row names between explicit and implicit.
mapvalues

Replace specified values with new values, in a vector or factor.
colwise

Column-wise function.
list_to_dataframe

List to data frame.
arrange

Order a data frame by its colums.
as.quoted

Convert input to quoted variables.
names.quoted

Compute names of quoted variables.
llply

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

Quick data frame.
desc

Descending order.
d_ply

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

Split a data frame by variables.
m_ply

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

Try, with default in case of error.
reduce_dim

Reduce dimensions.
true

Function that always returns true.
nunique

Number of unique values.
.

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

Text progress bar.
tryapply

Apply with built in try. Uses compact, lapply and tryNULL
split_labels

Generate labels for split data frame.
take

Take a subset along an arbitrary dimension
rbind.fill.matrix

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

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

Dimension names.
daply

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

Modify names by name, not position.
loop_apply

Loop apply
indexed_df

An indexed data frame.
progress_time

Text progress bar with time.
l_ply

Split list, apply function, and discard results.
as.data.frame.function

Make a function return a data frame.
match_df

Extract matching rows of a data frame.
splat

`Splat' arguments to a function.
compact

Compact list.
join_all

Recursively join a list of data frames.
mdply

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

Replicate expression and return results in a list.
print.quoted

Print quoted variables.
as.list.split

Convert split list to regular list.
split_indices

Split indices.
join.keys

Join keys. Given two data frames, create a unique key for each row.
is.formula

Is a formula? Checks if argument is a formula
maply

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

Construct an immutable data frame.
progress_none

Null progress bar
id_var

Numeric id for a vector.
liply

Experimental iterator based version of llply.
progress_win

Graphical progress bar, powered by Windows.
list_to_vector

List to vector.
round_any

Round to multiple of any number.