terms_select: Select terms in a step function.

View source: R/deprecated-terms_select.R

terms_selectR Documentation

Select terms in a step function.

Description

[Deprecated]

terms_select() has been deprecated in favor of recipes_eval_select().

Usage

terms_select(terms, info, empty_fun = function(x) x)

Arguments

terms

A list of formulas whose right-hand side contains quoted expressions. See rlang::quos() for examples.

info

A tibble with columns variable, type, role, and source that represent the current state of the data. The function summary.recipe() can be used to get this information from a recipe.

empty_fun

A function to execute when no terms are selected by the step. The default function throws an error with a message.

Value

A character string of column names or an error of there are no selectors or if no variables are selected.

See Also

recipe() summary.recipe() prep()


topepo/recipes documentation built on April 10, 2024, 10:30 p.m.