[R] POSIXct and chron issues with tz

2009-01-03 Thread Sherri Heck
Dear All- I am trying to merge two data files - they have different date formats and different times zones. I need to match up the date/time of the datasets and then invoke a conditional statement, such as: if dataC$mph is = 12 then keep dataM$co23 for the corresponding time/date stamp.

Re: [R] POSIXct and chron issues with tz

2009-01-03 Thread Gabor Grothendieck
There seems to be no reason to use POSIXct in the first place. Just use chron everywhere and read R News 4/1. Suppose we just want month 9 from the merged object: z2 - zoo(data.matrix(DF), tt) m - merge(z, z2, all = c(FALSE, TRUE)) m[ m$mon %in% 9 ] On Sat, Jan 3, 2009 at 7:57 PM, Sherri Heck