Displaying 1 result from an estimated 1 matches for "_pro_003".
Did you mean:
_pro_001
2006 Nov 15
1
dynamic aggregation of many variables
...d for every ID.
many thanks & regards, christian
week1 <- grep("(_PRO_001)",names(dmx3),perl=T)
week1table <- subset(dmx3,select=c(ID,week1))
week2 <- grep("(_PRO_002)",names(dmx3),perl=T)
week2table <- subset(dmx3,select=c(ID,week2))
week3 <- grep("(_PRO_003)",names(dmx3),perl=T)
week3table <- subset(dmx3,select=c(ID,week3))
week4 <- grep("(_PRO_004)",names(dmx3),perl=T)
week4table <- subset(dmx3,select=c(ID,week4))
mws <-
(week1table[,2:117]+week2table[,2:117]+week3table[,2:117]+week4table[,2:117])/4