Description Usage Arguments Value Examples
This is a function to decompose a time series object. The time series object is decomposed into trend, seasonal and remainder. Remainder is the ts minus the trend and seasonal. As input is only required an object from the class time series. Otherwise the function returns an error message. The code is adopted from Hyndman, Rob J. which provides him under: https://robjhyndman.com/hyndsight/tscharacteristics/
1 | decompose_ts(ts, transform = TRUE)
|
ts |
A time series object. |
transform |
A boolean to enable BoxCox transformation. |
A list of the decomposed ts
. If the input is not a ts,
an error message is returned. The list consist of the ts, the trend of
the ts, the seasonal of the ts and the remainder of the ts.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.