R/misc.R
remove_original_cols.Rd
This helper function should be used whenever the argument keep_original_cols is used in a function.
keep_original_cols
remove_original_cols(new_data, object, col_names)
A tibble.
A step object.
A character vector, denoting columns to remove.
new_data with col_names removed if get_keep_original_cols(object) == TRUE or object$preserve == TRUE.
col_names
get_keep_original_cols(object) == TRUE
object$preserve == TRUE
developer_functions