Skip to content
Prev 169760 / 398506 Next

length of object in repeated measures

in this case you can use ave(), e.g., say 'dat' is the name of your data 
frame, then try this:

dat$NoCaps <- ave(dat$Id, dat$Id, FUN = length)
dat


I hope it helps.

Best,
Dimitris
clion wrote: