sw_tidy | R Documentation |
Tidy the result of a time-series model into a summary tibble
sw_tidy(x, ...)
x |
An object to be converted into a tibble ("tidy" data.frame) |
... |
extra arguments |
sw_tidy()
is a wrapper for broom::tidy()
. The main benefit of sw_tidy()
is that it has methods for various time-series model classes such as
HoltWinters
, ets
, Arima
, etc.
sw_tidy()
methods always returns a "tidy" tibble with model coefficient / parameters.
For non-time series, sw_tidy()
defaults to broom::tidy()
.
The only difference is that the return is a tibble.
The output of sw_tidy()
is always a tibble with disposable row names. It is
therefore suited for further manipulation by packages like dplyr and
ggplot2.
a tibble
broom::tidy()
library(dplyr)
library(forecast)
library(sweep)
WWWusage %>%
auto.arima() %>%
sw_tidy(conf.int = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.