recipes_eval_select | R Documentation |
recipes_eval_select()
is a recipes specific variant of
tidyselect::eval_select()
enhanced with the ability to recognize recipes
selectors, such as all_numeric_predictors()
. See selections
for more information about the unique recipes selectors.
This is a developer tool that is only useful for creating new recipes steps.
recipes_eval_select(
quos,
data,
info,
...,
allow_rename = FALSE,
check_case_weights = TRUE,
call = caller_env()
)
quos |
A list of quosures describing the selection. This is generally
the |
data |
A data frame to use as the context to evaluate the selection in.
This is generally the |
info |
A data frame of term information describing each column's type
and role for use with the recipes selectors. This is generally the |
... |
These dots are for future extensions and must be empty. |
allow_rename |
Should the renaming syntax |
check_case_weights |
Should selecting case weights throw an error?
Defaults to |
call |
The execution environment of a currently running function, e.g.
|
A named character vector containing the evaluated selection. The names are
always the same as the values, except when allow_rename = TRUE
, in which
case the names reflect the new names chosen by the user.
developer_functions
library(rlang)
data(scat, package = "modeldata")
rec <- recipe(Species ~ ., data = scat)
info <- summary(rec)
info
quos <- quos(all_numeric_predictors(), where(is.factor))
recipes_eval_select(quos, scat, info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.