powered by
melt and cast data in a single step
recast(data, formula, ..., id.var, measure.var)
Data set to melt
Casting formula, see cast for specifics
Other arguments passed to cast
Identifying variables. If blank, will use all non measure.var variables
Measured variables. If blank, will use all non id.var variables
This conveniently wraps melting and casting a data frame into one step.
http://had.co.nz/reshape/
# NOT RUN { recast(french_fries, time ~ variable, id.var=1:4) # }
Run the code above in your browser using DataLab