Change the class of a (Multivariate) Time Series
changeTSrepresentation (x, newRepresentation)
a multivariate time series object.
a multivariate time series object.
function or character string indicating the function to use to change the time series class.
This function attempts to convert the time series to the new class using
newRepresentation
.
If the representation is a character string then it is applied using do.call(TSrepresentation, list(x, dates))
where x
is the time series (matrix) to be return and dates are
determined by as.Date(time(x))
where x
is the default representation of the data. If representation is not a character string
then it should be
a function and is applied using TSrepresentation(x, dates)