View source: R/util_functions.R
ts_sum | R Documentation |
A row sum function for multiple time series object ("mts"), return the the summation of the "mts" object as a "ts" object
ts_sum(mts.obj)
mts.obj |
A multivariate time series object of a class "mts" |
x <- matrix(c(1:100, 1:100, 1:100), ncol = 3)
mts.obj <- ts(x, start = c(2000, 1), frequency = 12)
ts_total <- ts_sum(mts.obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.