Learn R Programming

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

reshape2 (version 1.0)

Flexibly reshape data: a reboot of the reshape package.

Description

Reshape lets you flexibly restructure and aggregate data using just two functions: melt and cast.

Copy Link

Version

Install

install.packages('reshape2')

Monthly Downloads

348,511

Version

1.0

License

MIT

Maintainer

Hadley Wickham

Last Published

September 10th, 2010

Functions in reshape2 (1.0)

french_fries

Sensory data from a french fries experiment.
melt.data.frame

Melt a data frame...
melt

Convert an object into a molten data frame.
recast

Recast: melt and cast in a single step...
guess_value

Guess name of value column...
melt.default

Melt a vector.
melt_check

Check that input variables to melt are appropriate.
melt.array

Melt an array.
parse_formula

Parse casting formulae.
add_margins

Add margins to a data frame.
cast

Cast functions...
colsplit

Split a vector into multiple columns...
margins

Figure out margining variables.
melt.list

Melt a list by recursively melting each component.