add_formula: Add formula terms to a workflow

Description Usage Arguments Details Value Examples

View source: R/pre-action-formula.R

Description

Usage

1
2
3
4
5
add_formula(x, formula, ..., blueprint = NULL)

remove_formula(x)

update_formula(x, formula, ..., blueprint = NULL)

Arguments

x

A workflow

formula

A formula specifying the terms of the model. It is advised to not do preprocessing in the formula, and instead use a recipe if that is required.

...

Not used.

blueprint

A hardhat blueprint used for fine tuning the preprocessing. If NULL, hardhat::default_formula_blueprint() is used.

Details

To fit a workflow, one of add_formula() or add_recipe() must be specified, but not both.

Value

x, updated with either a new or removed formula preprocessor.

Examples

1
2
3
4
5
6
7

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