Re: [R] Date Time Sequence

2008-06-26 Thread stephen sefick
Gabor this is better than using x = seq(ISOdate(2006,1,1, 0, 0, 0), by = "15 min", length.out=35040) this works but your code below is exactly what I needed instead of almost. thankyou very much Stephen On Thu, Jun 26, 2008 at 6:06 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Try this:

Re: [R] Date Time Sequence

2008-06-26 Thread Gabor Grothendieck
Try this: library(chron) t1 <- chron("1/1/2006", "00:00:00") t2 <- chron("12/31/2006", "23:45:00") deltat <- times("00:15:00") tt <- seq(t1, t2, by = times("00:15:00")) Note that if you have some data and your intention is simply to create the index for it so you can create a zoo or zooreg object