Hi,

I have a following data set:
id    event    time (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...). What would be the best approach to do that?

Thanks,
Srecko

        [[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