Displaying 1 result from an estimated 1 matches for "mydata_cast".
2009 Dec 13
2
Reshape a data set
...I need to reshape:
subject <- c(1,1,2,2,3,3)
coder <- c(1,2,3,2,2,1)
score <- c(20,30,10,5,15,NA)
time <- c(5,4,10,12,NA,13)
mydata <- cbind(subject,coder,score,time)
Here is where I'm not sure:
library(reshape)
mydata_melt <- melt(mydata, id="subject", na.rm=TRUE)
mydata_cast <- cast(mydata, ???
Any help would be greatly appreciated. Thanks so much!
-Isaac
--
View this message in context: http://n4.nabble.com/Reshape-a-data-set-tp963104p963104.html
Sent from the R help mailing list archive at Nabble.com.