Select Terms in a Step Function.Source:
terms_select() has been deprecated in favor of
This function bakes the step function selectors and might be useful when creating custom steps.
A list of formulas whose right-hand side contains quoted expressions. See
A tibble with columns
sourcethat represent the current state of the data. The function
summary.recipe()can be used to get this information from a recipe.
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.
library(rlang) data(Sacramento, package = "modeldata") rec <- recipe(~., data = Sacramento) info <- summary(rec) terms_select(info = info, quos(all_predictors())) #> Warning: `terms_select()` was deprecated in recipes 0.1.17. #> Please use `recipes_eval_select()` instead. #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. #>  "city" "zip" "beds" "baths" "sqft" #>  "type" "price" "latitude" "longitude"