One of the main advantages of the zoo class and, in particular, the xts class (with respect to the ts object), is their friendly and simple structure. This allows us to preprocess and manipulate these types of objects in a seamless manner. Both the zoo and the xts packages provide a variety of utility functions for working with these types of objects. In this section, we will introduce some of the main functions for manipulating the zoo and xts objects.
Manipulating the zoo and xts objects
Merging time series objects
In some instances, you may want to join or merge different series into a single object. Both the zoo and xts packages provide functions for merging a time series object (including merging mixed classes, such as...