terms_select {recipes} | R Documentation |
terms_select()
has been deprecated in favor of recipes_eval_select()
.
This function bakes the step function selectors and might be useful when creating custom steps.
terms_select(terms, info, empty_fun = abort_selection)
terms |
A list of formulas whose right-hand side contains
quoted expressions. See |
info |
A tibble with columns |
empty_fun |
A function to execute when no terms are selected by the step. The default function throws an error with a message. |
A character string of column names or an error of there are no selectors or if no variables are selected.
recipe()
summary.recipe()
prep()
library(rlang) data(Sacramento, package = "modeldata") rec <- recipe(~., data = Sacramento) info <- summary(rec) terms_select(info = info, quos(all_predictors()))