recast

0th

Percentile

Recast: melt and cast in a single step

This conveniently wraps melting and (d)casting a data frame into a single step.

Keywords
manip
Usage
recast(data, formula, ..., id.var, measure.var)
Arguments
data

data set to melt

formula

casting formula, see dcast for specifics

...

other arguments passed to dcast

id.var

identifying variables. If blank, will use all non measure.var variables

measure.var

measured variables. If blank, will use all non id.var variables

See Also

http://had.co.nz/reshape/

Aliases
  • recast
Examples
# NOT RUN {
recast(french_fries, time ~ variable, id.var = 1:4)
# }
Documentation reproduced from package reshape2, version 1.4.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.