recipes_remove_cols: Removes columns if options apply

View source: R/misc.R

recipes_remove_colsR Documentation

Removes columns if options apply

Description

This helper function removes columns based on character vectors.

Usage

recipes_remove_cols(new_data, object, col_names = character())

Arguments

new_data

A tibble.

object

A step object.

col_names

A character vector, denoting columns to remove. Will overwrite object$removals if set.

Value

new_data with column names removed if specified by col_names or object$removals.

See Also

developer_functions


recipes documentation built on July 4, 2024, 9:06 a.m.