[R] Reshape function

DAVID JENSEN djense00 at yahoo.com
Sat Nov 2 00:46:40 CET 2002

Can someone help me with the proper usage of the
reshape function?

Let's say I have a dataset with columns like this
(wide format):

Id  Sex  Group   Test   Day1   Day 2  Day 3...
And I want to transpose this into something like this

Id    Sex   Group    Test   Time

Where the new column labeled time contains all the
time variables (Day 1, Day 2, Day 3...) that were in
the wide format.  I just cannot get it to work right
using the reshape function.  I'm sure there is
something that I'm missing.  I just can't get a handle
on how to use this reshape function.

Thanks so much in advance for any help.



HotJobs - Search new jobs daily now

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list