powered by
This conveniently wraps melting and (d)casting a data frame into a single step.
recast(data, formula, ..., id.var, measure.var)
data set to melt
casting formula, see dcast for specifics
dcast
other arguments passed to dcast
identifying variables. If blank, will use all non measure.var variables
measured variables. If blank, will use all non id.var variables
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