tidiers_decomposed_ts | R Documentation |
Tidying methods for decomposed time series
## S3 method for class 'decomposed.ts'
sw_tidy_decomp(x, timetk_idx = FALSE, rename_index = "index", ...)
x |
An object of class "decomposed.ts" |
timetk_idx |
Used with |
rename_index |
Used with |
... |
Not used. |
sw_tidy_decomp()
returns a tibble with the following time series attributes:
index
: An index is either attempted to be extracted from the model or
a sequential index is created for plotting purposes
season
: The seasonal component
trend
: The trend component
random
: The error component
seasadj
: observed - season
decompose()
library(dplyr)
library(forecast)
library(sweep)
fit_decomposed <- USAccDeaths %>%
decompose()
sw_tidy_decomp(fit_decomposed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.