Dear R helpers,
The following output, from Hmisc reShape examples, illustrates how to
reshape from a data frame with repeated measures.
I would need to do exactly the opposite ie get sbp1 to 3 and dbp1 to 3
from sbp and and dbp.
Is there a way to do that without subsetting, renaming and binding ?
Many thanks for any help,
Regards, JL
set.seed(33)
n <- 4
w <- data.frame(age=rnorm(n, 40, 10),