[R] Reshape
pwilliam
pwilliam at uoregon.edu
Wed Jan 19 03:18:41 CET 2011
Hi - I'm up against a complicated reshape problem. I have data of the form
X1,Y1,hr1,hr2,hr3
X1,Y2,hr1,hr2,hr3
X1,Y3,hr1,hr2,hr3
X2,Y1,hr1,hr2,hr3
X2,Y2,hr1,hr2,hr3
X2,Y3,hr1,hr2,hr3
where X and Y are factors and the hr(1,2,3) are values. I need it as
,X1, X2
Y1,hr1,hr1
Y1,hr2,hr2
Y1,hr3,hr3
Y2,hr1,hr1
Y2,hr2,hr2
Y2,hr3,hr3
..,
Any hints? I've been at it for hours.
p
--
View this message in context: http://r.789695.n4.nabble.com/Reshape-tp3224455p3224455.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list