Re: [R] Selecting timestamps

2008-02-21 Thread Lauri Nikkinen
is left as an easy > exercise. > > Bill Venables > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Lauri Nikkinen > Sent: Thursday, 21 February 2008 5:04 PM > To: [EMAIL PROTECTED] > Subject: [R] Selecting timestamps > >

Re: [R] Selecting timestamps

2008-02-20 Thread Bill.Venables
5:04 PM To: [EMAIL PROTECTED] Subject: [R] Selecting timestamps R-users, I have two vectors (of timestamps) d1 <- as.POSIXct(strptime("2.2.2002 07:00", format="%d.%m.%Y %H:%M")) d2 <- as.POSIXct(strptime("4.2.2002 07:00", format="%d.%m.%Y %H:%M")) seq1 <-

[R] Selecting timestamps

2008-02-20 Thread Lauri Nikkinen
R-users, I have two vectors (of timestamps) d1 <- as.POSIXct(strptime("2.2.2002 07:00", format="%d.%m.%Y %H:%M")) d2 <- as.POSIXct(strptime("4.2.2002 07:00", format="%d.%m.%Y %H:%M")) seq1 <- seq(d1, d2, "hours") seq1 d3 <- as.POSIXct(strptime("2.2.2002 15:22", format="%d.%m.%Y %H:%M")) d4 <- as