Try this:
DF <- data.frame(tt = ISOdate(2009, 1:12, 1), x = 1:12, y = 1:12)
st <- as.POSIXct("2009-05-01 00:00:00")
en <- as.POSIXct("2009-07-01 23:59:59")
DF[DF$tt > st & DF$tt < en, ]
If the data in DF is numeric you would probably be better off
using a zoo series than a data.frame in which cas
Hi,
I have a big dataframe with a POSIXct column and I'd like to extract a
subset contained in a given time interval, from Date 1 to Date 2.
Paulo E. Cardoso
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
2 matches
Mail list logo