On Fri, Jul 23, 2010 at 1:39 PM, Dimitri Liakhovitski <dimitri.liakhovit...@gmail.com> wrote: > Very sorry - I mistunderstood and confused split with index.column - > totally my fault. > Ok, now I've run this line: > > z <- read.zoo(OrigData, index.column = 2, split = "Brand") > > And I am getting: > Error in merge.zoo(` Plus` = c(NA, 98L, 95L, 97L, NA, 98L, 97L, 98L, NA, : > series cannot be merged with non-unique index entries in a series > In addition: There were 11 warnings (use warnings() to see them) > > And under warnings() it says: > 1: In zoo(rval4[[i]], ix[[i]]) : > some methods for “zoo” objects do not work if the index entries in > ‘order.by’ are not unique >
There may be something wrong with the data. The warning is an alert to the fact that we have at least one brand for which there are duplicate dates. One would have expected that dates are unique within brand (or if its ok to have duplicate dates within brand then they should be aggregated as they are read them in using the aggregate= argument of read.zoo) . ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.