workflow: Create a workflow

Description Usage Value Examples

View source: R/workflow.R

Description

A workflow is a container object that aggregates information required to fit and predict from a model. This information might be a recipe used in preprocessing, specified through add_recipe(), or the model specification to fit, specified through add_model().

Usage

1

Value

A new workflow object.

Examples

1
2
3
4
5
6
7
library(recipes)

rec <- recipe(mpg ~ cyl, mtcars)
rec <- step_log(rec, cyl)

wrk <- workflow()
wrk <- add_recipe(wrk, rec)

tidymodels/workflows documentation built on Jan. 3, 2020, 4:47 a.m.