When I try to convert the data to zoo format, there is a problem that the index value is not unique, how can I solve it

ZOO <- zoo(x$INE, order.by=as.Date(as.character(x$daily), format='%m/%d/%Y'))
Warning message:
In zoo(x$INE, order.by = as.Date(as.character(x$daily), format = "%m/%d/%Y")) :
some methods for “zoo” objects do not work if the index entries in ‘order.by’ are not unique

do you understand why you don't have unique data ?
if you have multiple entries for some dates, and they relate to different things, you should drop the ones that dont relate to the particular time series you are doing.
if you have multiple entries for some dates, and they all do relate, but need to be aggregated together, you should do that before making the time series.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.