ps_replace_values: Replace values over set of columns

View source: R/replace-values.R

ps_replace_valuesR Documentation

Replace values over set of columns

Description

From argument may contain multiple values. Class of column is retained, except if coerced by replacement value.

Usage

ps_replace_values(x, columns = names(x), from, to = NA_character_)

Arguments

x

A data.frame, tibble, or sf object.

columns

A vector of character strings indicating columns to modify.

from

A vector of values to be replaced.

to

A value to replace with.

Value

The modified object.


poissonconsulting/poisdata documentation built on Jan. 11, 2024, 3:58 a.m.