Hi,

I had an example like 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
which I used to split using split(dat1,cumsum(dat1$action=="login")).

If I had a similar example:
id    user    IP
1      12      ip1
2      12      ip1
3      12      ip2
4      12      ip2
5      12      ip2
6      12      ip3
7      12      ip3
8      12      ip3

how can I split data frame to obtain the following structure:
#1
1      12      ip1
2      12      ip1
#2
3      12      ip2
4      12      ip2
5      12      ip2
#3
6      12      ip3
7      12      ip3
8      12      ip3

thanks,
Srecko

	[[alternative HTML version deleted]]

