Skip to content
Prev 132603 / 398506 Next

Odp: creating a factor from dates by subject?

r-help-bounces at r-project.org napsal dne 20.12.2007 16:33:05:
If you do not heve identical dates in one ID then

unlist(lapply(rle(test$V1)$lengths, seq))

shall give you session vector.

Regards
Petr
http://www.R-project.org/posting-guide.html