Re: [R] cumulative time durations of specified periods (chron)

2006-06-13 Thread Spencer Graves
Did you try the following: xto-xfrom Time in days: [1] 1.50 1.75 2.00 2.25 Also, have you seen Gabor Grothendieck and Thomas Petzoldt. R help desk: Date and time classes in R. R News, 4(1):29-32, June 2004., downloadable from www.r-project.org - Documentation: Newsletter

Re: [R] cumulative time durations of specified periods (chron)

2006-06-13 Thread Sebastian Luque
On Tue, 13 Jun 2006 18:49:09 -0700, Spencer Graves [EMAIL PROTECTED] wrote: Did you try the following: xto-xfrom Time in days: [1] 1.50 1.75 2.00 2.25 Also, have you seen Gabor Grothendieck and Thomas Petzoldt. R help desk: Date and time classes in R. R News, 4(1):29-32,

Re: [R] cumulative time durations of specified periods (chron)

2006-06-13 Thread Sebastian Luque
[sorry for my previous empty follow-up -- my fingers got messed up.] Spencer Graves [EMAIL PROTECTED] wrote: Did you try the following: xto-xfrom Time in days: [1] 1.50 1.75 2.00 2.25 I wanted to find the total amount of time between a series of date/time's corresponding to particular

[R] cumulative time durations of specified periods (chron)

2006-06-11 Thread Sebastian Luque
Hi, Say we have two chron vectors representing start and end date/times of an event, respectively: R (xfrom - chron(seq(1.25, 11, 3.25))) [1] (01/02/70 06:00:00) (01/05/70 12:00:00) (01/08/70 18:00:00) [4] (01/12/70 00:00:00) R (xto - chron(as.numeric(xfrom) + seq(1.5, 2.25, 0.25))) [1]