ts_extract_auto_fitted_workflow: Extract Boilerplate Items

View source: R/utils-get-boilerplate-fit-wflw.R

ts_extract_auto_fitted_workflowR Documentation

Extract Boilerplate Items

Description

Extract the fitted workflow from a ts_auto_ function.

Usage

ts_extract_auto_fitted_workflow(.input)

Arguments

.input

This is the output list object of a ts_auto_ function.

Details

Extract the fitted workflow from a ts_auto_ function. This will only work on those functions that are designated as Boilerplate.

Value

A fitted workflow object.

Author(s)

Steven P. Sanderson II, MPH

Examples

## 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)


healthyR.ts documentation built on Nov. 15, 2023, 9:07 a.m.