Skip to content

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

1 message · Mark Leeds

#
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: