尝试基于包含 DST(夏令时)的 POSIXlt 向量定义动物园对象时遇到问题。查看 zoo() 函数的源代码,您可以看到警告来自 match() 的行为,它没有考虑 POSIXlt 的时区。
有什么解决办法吗?
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
谢谢,
热雷米