Open joshuaulrich opened 7 years ago
Perhaps you could just say that that is not supported. In zoo you get a warning. It gives you some answer but the result is not necessarily coirrect; however, at least you were warned about it.
@ggrothendieck Thanks for the comment!
I think we can return a sensible xts object if one index is Date and the other is POSIXct, since they're both time-based. We will need to be careful about timezones though. The problem is harder for zoo, since index types do not necessarily have a clear relationship.
The warning is an interesting idea. Not sure if it would be helpful or an annoyance though. I guess it depends on the final solution.
The order that xts objects are passed to
merge.xts
can produce different results when the index classes differ. It seems reasonable to expect that the same result be returned regardless of the order the inputs are provided. This may, or may not, be related to #53.For example:
The results are: