Hi,

I have a data set with structure similar to this:
id    user    action
1      12      login
2      12      view
3      12      view
4      12      view
5      12      login
6      12      view
7      12      view
8      12      login

I want to create a list of sessions. That means to split table on every
occurrence of "login". Using Java (or some other language), I would
probably iterate through rows and create new List instance on every
"login", but I guess there is more efficient way to do that using R?

Thanks

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to