Learn R Programming

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

plyr (version 1.2.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

333,284

Version

1.2.1

License

MIT

Maintainer

Hadley Wickham

Last Published

September 11th, 2010

Functions in plyr (1.2.1)

get2-idf

Extract single column from immutable data frame.
idata.frame

Construct an immutable data frame.
names.quoted

Compute names of quoted variables.
a_ply

Split array, apply function, and discard results.
as.data.frame.idf

Convert immutable df to regular data frame.
loop_apply

Loop apply...
indexed_array

An indexed array.
desc

Descending order.
progress_tk

Graphical progress bar, powered by Tk.
mlply

Call function with arguments in array or data frame, returning a list.
get-split

Subset splits.
laply

Split list, apply function, and return results in an array.
rbind.fill.matrix

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

Dimension names.
print.quoted

Print quoted variables.
llply

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

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

Split iterator that returns values, not indices.
unrowname

Un-rowname.
defaults

Set defaults.
l_ply

Split list, apply function, and discard results.
compact

Compact list.
list_to_array

List to array.
list_to_dataframe

List to data frame.
daply

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

Fail with specified value.
colwise

Column-wise function.
alply

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

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

Count the number of occurences.
list_to_vector

List to vector.
names.idf

Immutable df names.
join.keys

Join keys.
try_default

Try, with default in case of error.
each

Aggregate multiple functions into a single function.
liply

Experimental iterator based version of llply.
as.quoted

Convert input to quoted variables.
maply

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

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

Replicate expression and return results in a data frame.
true

Function that always returns true.
raply

Replicate expression and return results in a array.
ldply

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

Replicate expression and return results in a list.
get1-idf

Immutable df subsetting...
vaggregate

Vector aggregate.
nunique

Number of unique values.
indexed_df

An indexed data frame.
ddply

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

Determine if a vector is discrete.
summarise

Summarise a data frame.
split_indices

Split indices.
amv_dim

Dimensions.
dim.idf

Immutable df dimensions.
reduce_dim

Reduce dimensions.
dims

Number of dimensions.
arrange

Order a data frame by its colums.
round_any

Round to multiple of any number...
m_ply

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

Create progress bar.
print.split

Print split.
quickdf

Quick data frame.
progress_text

Text progress bar.
join

Join two data frames together.
splitter_a

Split an array by...
tryapply

Apply with built in try.
is.formula

Is a formula?
eval.quoted

Evaluate a quoted list of variables.
progress_win

Graphical progress bar, powered by Windows.
r_ply

Replicate expression and discard results.
adply

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

`Splat' arguments to a function.
d_ply

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

Null progress bar...
splitter_d

Split a data frame by variables.
id_var

Numeric id for a vector.
quoted

Quote variables.
rbind.fill

Combine data...
split_labels

Generate labels for split data frame.
as.list.split

Convert split list to regular list.
as.data.frame.function

Make a function return a data frame.
empty

Check if a data frame is empty.
mdply

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

Monthly ozone measurements over Central America
Baseball batting

Yearly batting records for all major league baseball players