View source: R/condense_control.R
condense_control | R Documentation |
This function is used to help the hierarchy of control functions used throughout the tidymodels packages. It is now assumed that each control function is either a subset or a superset of another control function.
condense_control(x, ref)
x |
A control object to be condensed. |
ref |
A control object that is used to determine what element should be kept. |
A control object with the same elements and classes of ref
, with
values of x
.
ctrl <- control_parsnip(catch = TRUE)
ctrl$allow_par <- TRUE
str(ctrl)
ctrl <- condense_control(ctrl, control_parsnip())
str(ctrl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.