Skip to content
Prev 164759 / 398506 Next

how to create duplicated ID in multi-records per subject dataset

hi:  change your dots to NAs and then use na.locf in the zoo package. i 
didn't test it but i think that should work.

DF$ID[DF$ID == .]<-NA
DF$ID<-na.locf(DF$ID)
On Sun, Dec 14, 2008 at 8:56 PM, Zhixin Liu wrote: