[R] Reshape Dataframe
hadley wickham
h.wickham at gmail.com
Tue Dec 18 15:15:46 CET 2007
On 12/18/07, Bert Jacobs <b.jacobs at pandora.be> wrote:
>
> Hi,
>
> I'm having a bit of problems in creating a new dataframe.
> Below you'll find a description of the current dataframe and of the
> dataframe that needs to be created.
> Can someone help me out on this one?
library(reshape)
dfm <- melt(df, id = 1:3)
cast(dfm, ... ~ Var3)
You can find out more about the reshape package at http://had.co.nz/reshape
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list