Re: [R] Iterate over rows and update values based on condition

2013-08-27 Thread srecko joksimovic
; #3 3 12 view > #4 4 12 view > # > #$`2` > # id user action > #5 5 12 login > #6 6 12 view > #7 7 12 view > # > #$`3` > # id user action > #8 8 12 login > A.K. > > > > - Original Message - > From: sreck

Re: [R] Iterate over rows and update values based on condition

2013-08-27 Thread arun
iginal Message - From: srecko joksimovic To: R-help@r-project.org Cc: Sent: Tuesday, August 27, 2013 3:29 PM Subject: [R] Iterate over rows and update values based on condition Hi, I have a data set with structure similar to this: id    user    action 1      12      login 2      12      view 3      1

[R] Iterate over rows and update values based on condition

2013-08-27 Thread srecko joksimovic
Hi, I have a data set with structure similar to this: iduseraction 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 ta