Re: [R] Calculating difference in variable values (e.g. elapsed time) in data frame

2011-07-28 Thread Sarah Goslee
Hi, On Thu, Jul 28, 2011 at 11:38 AM, Philippe Hensel wrote: > Hello, > > I have a data frame containing time (e.g. GMT), and I would like to > create/add a new variable that would be the computation of the elapsed time > since the first observation.  Does anyone have a suggestion for an easy way

[R] Calculating difference in variable values (e.g. elapsed time) in data frame

2011-07-28 Thread Philippe Hensel
Hello, I have a data frame containing time (e.g. GMT), and I would like to create/add a new variable that would be the computation of the elapsed time since the first observation. Does anyone have a suggestion for an easy way to do this? I am having trouble creating a new variable that woul