Displaying 1 result from an estimated 1 matches for "mdid".
Did you mean:
did
2009 Jun 23
2
Long to wide format without time variable
....1 on Windows XP Professional.
Cheers,
Alan Cohen
Here's what my data look like now:
> id <- rep(1:5,2)
> COD <- c("A01","A02","A03","A04","A05","B01","A02","B03","B04","A05")
> MDid <- c(1:6,3,5,7,2)
> data <- as.data.frame(cbind(id,COD,MDid))
> data
id COD MDid
1 1 A01 1
2 2 A02 2
3 3 A03 3
4 4 A04 4
5 5 A05 5
6 1 B01 6
7 2 A02 3
8 3 B03 5
9 4 B04 7
10 5 A05 2
And here's what I'd like them to look like:...