I get an issue when trying to define a zoo object based on a POSIXlt vector containing a DST (Daylight Saving Time). Having a look at the source code of zoo() function, you can see that the warning arise from the behavior of match() that does not take into account the time zone of the POSIXlt.
Any solution ?
library(zoo)
order.by <- seq(ISOdatetime(2004,10,31,0,0,0,tz = "Europe/Paris"),
ISOdatetime(2004,10,31,6,0,0,tz = "Europe/Paris"),
by=3600)
zoo(1:8, order.by) # no warning
zoo(1:8, as.POSIXlt(order.by)) # warning
Warning message:
In zoo(1:8, as.POSIXlt(order.by)) :
some methods for “zoo” objects do not work if the index entries in ‘order.by’ are not unique
Thanks,
Jérémy