Re: [R] data frame and cumulative sum

2011-12-07 Thread Giovanni Azua
Thank you Michael, indeed, my bad, I get so deep in trying to solve the problem that forget to try the most basic help first. Best regards, Giovanni On Dec 7, 2011, at 11:20 PM, R. Michael Weylandt wrote: > ??"cumulative sum" would almost certainly lead you to cumsum with only > a modicum of

Re: [R] data frame and cumulative sum

2011-12-07 Thread R. Michael Weylandt
??"cumulative sum" would almost certainly lead you to cumsum with only a modicum of effort Michael On Wed, Dec 7, 2011 at 5:13 PM, Giovanni Azua wrote: > Hello, > > I have a data frame that looks like this (containing interarrival times): > >> str(df) > 'data.frame':   18233 obs. of  1 variable:

[R] data frame and cumulative sum

2011-12-07 Thread Giovanni Azua
Hello, I have a data frame that looks like this (containing interarrival times): > str(df) 'data.frame': 18233 obs. of 1 variable: $ Interarrival: int 135 806 117 4 14 1 9 104 169 0 ... > head(df) Interarrival 1 135 2 806 3 117 44 5 14 6