[R] need help on melt/cast
Doran, Harold
HDoran at air.org
Thu Sep 22 16:24:19 CEST 2011
?reshape
________________________________________
From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of Eugene Kanshin [kanshined1 at gmail.com]
Sent: Thursday, September 22, 2011 9:54 AM
To: r-help at r-project.org
Subject: [R] need help on melt/cast
Hello,
I need to convert dataframe from:
ID T0 T1 T2
A 1 2 3
B 4 5 6
C 7 8 9
to:
ID Variable Value
A T0 1
A T1 2
A T2 3
B T0 4
B T1 5
B T2 6
C T0 7
C T1 8
C T2 9
i tried to use melt cast but it gives me all the time not exactly what I
need.
Thank you.
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list