First aggregates multivariate matrix time series by year. Then converts to a vector time series in which “seasons” correspond to these annualized values for the original variables.
mts2ts(x, seas = 1:frequency(x), na.rm = FALSE)
An object of class "mts"
Numeric vector of seasons to aggregate in original time series.
Should missing data be ignored when aggregating?
A vector time series
The seas
parameter enables focusing the subsequent analysis on
seasons of special interest, or to ignore seasons where there are too many
missing data. The function can be used in conjunction with seaKen
to
conduct a Regional Kendall trend analysis. Sometimes just plotting the
resulting function can be useful for exploring a spatial transect over time.