Displaying 1 result from an estimated 1 matches for "fullcast".
2012 Oct 17
1
Comparing dcast and reshape
...base.score = c(27, 13, 31, 11, 22, 10, 41, 17),
score.90d = c(20, 11, 27, 12, 24, 8, 34, 15))
Full.Melt <- melt(Raw, id.vars=c("site", "id", "instrument"),
measure.vars=c("base.score", "score.90d"))
FullCast <- dcast(Full.Melt, site + id ~ instrument + variable,
value.var="value")
> FullCast
site id beck_base.score beck_score.90d phq_base.score phq_score.90d
1 1 1 27 20 13 11
2 1 2 31...