Re: [R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
&idp=67 > #4 4sys login 1373502892 80 B > http:// > #5 5 list delete 1373502995 901 C > http:// > #6 6 list view 1373503896 100 D > http:// > #7 7 taskadd 1373503996 NA A > http://post/add?id=35&

Re: [R] Add new calculated column to data frame

2013-08-29 Thread arun
  100 D  http:// #7  7   task    add 1373503996   NA A http://post/add?id=35&idp=99 A.K. ____________ From: srecko joksimovic To: arun Sent: Thursday, August 29, 2013 6:04 PM Subject: Re: [R] Add new calculated column to data frame "Did

Re: [R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
add?id=34&idp=45 > #4 4sys login 1373502892 80 B > http://post/add?id=39&idp=42 > #5 5 list delete 1373502995 901 C > http://post/add?id=37&idp=41 > #6 6 list view 1373503896 100 D > http://post/add?id=36&idp

Re: [R] Add new calculated column to data frame

2013-08-29 Thread arun
amp;idp=46 #7  7   task    add 1373503996   NA F http://post/add?id=31&idp=45 A.K. From: srecko joksimovic To: arun Sent: Thursday, August 29, 2013 5:38 PM Subject: Re: [R] Add new calculated column to data frame Hi Arun, I really

Re: [R] Add new calculated column to data frame

2013-08-29 Thread arun
__ From: srecko joksimovic To: arun Cc: R help Sent: Thursday, August 29, 2013 2:34 PM Subject: Re: [R] Add new calculated column to data frame Hi Arun, There is one more question... you explained me how to use  split(dat1,cumsum(dat1$action=="login")) in one of p

Re: [R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
Thanks Berend, I don't know why I didn't try that before posting the question... but... anyways, thanks for your help Srecko On Thu, Aug 29, 2013 at 11:34 AM, Berend Hasselman wrote: > > On 29-08-2013, at 20:15, srecko joksimovic > wrote: > > > Thanks Arun, > > > > this is great. However, it

Re: [R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
xample if module=task and event=add => category= A... Srecko On Thu, Aug 29, 2013 at 11:22 AM, arun wrote: > Hi Srecko, > No problem. > Regards, > Arun > > > > > > > > From: srecko joksimovic > To: arun > Sen

Re: [R] Add new calculated column to data frame

2013-08-29 Thread Berend Hasselman
On 29-08-2013, at 20:15, srecko joksimovic wrote: > Thanks Arun, > > this is great. However, it should be just a little bit different: > > # id event time time_on_task > #1 1add 1373502892 80 > #2 2add 1373502972 23 > #3 3 delete 1373502995 901

Re: [R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
gt; > > - Original Message - > From: srecko joksimovic > To: R help > Cc: > Sent: Thursday, August 29, 2013 1:52 PM > Subject: [R] Add new calculated column to data frame > > Hi, > > I have a following data set: > ideventtime (in sec) > 1

Re: [R] Add new calculated column to data frame

2013-08-29 Thread arun
t.. A.K. - Original Message - From: srecko joksimovic To: R help Cc: Sent: Thursday, August 29, 2013 1:52 PM Subject: [R] Add new calculated column to data frame Hi, I have a following data set: id    event    time (in sec) 1    add      1373502892 2    add      1373502972

[R] Add new calculated column to data frame

2013-08-29 Thread srecko joksimovic
Hi, I have a following data set: ideventtime (in sec) 1 add 1373502892 2 add 1373502972 3 delete 1373502995 4 view 1373503896 5 add 1373503996 ... I'd like to add new column "time on task" which is time elapsed between two events (id2 - id1...).