View source: R/utils-get-boilerplate-fit-wflw.R
ts_extract_auto_fitted_workflow | R Documentation |
Extract the fitted workflow from a ts_auto_
function.
ts_extract_auto_fitted_workflow(.input)
.input |
This is the output list object of a |
Extract the fitted workflow from a ts_auto_
function. This will
only work on those functions that are designated as Boilerplate.
A fitted workflow
object.
Steven P. Sanderson II, MPH
## Not run:
library(dplyr)
data <- AirPassengers %>%
ts_to_tbl() %>%
select(-index)
splits <- time_series_split(
data
, date_col
, assess = 12
, skip = 3
, cumulative = TRUE
)
ts_lm <- ts_auto_lm(
.data = data,
.date_col = date_col,
.value_col = value,
.rsamp_obj = splits,
.formula = value ~ .,
)
ts_extract_auto_fitted_workflow(ts_lm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.