Description Usage Arguments Details Value Examples
View source: R/preactionformula.R
add_formula()
specifies the terms of the model through the usage of a
formula.
remove_formula()
removes the formula as well as any downstream objects
that might get created after the formula is used for preprocessing, such as
terms. Additionally, if the model has already been fit, then the fit is
removed.
update_formula()
first removes the formula, then replaces the previous
formula with the new one. Any model that has already been fit based on this
formula will need to be refit.
1 2 3 4 5  add_formula(x, formula, ..., blueprint = NULL)
remove_formula(x)
update_formula(x, formula, ..., blueprint = NULL)

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 
To fit a workflow, one of add_formula()
or add_recipe()
must be
specified, but not both.
x
, updated with either a new or removed formula preprocessor.
1 2 3 4 5 6 7  workflow < workflow()
workflow < add_formula(workflow, mpg ~ cyl)
workflow
remove_formula(workflow)
update_formula(workflow, mpg ~ disp)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.