recode_values: Replace values of some tibble's columns to one value

View source: R/utils_df.R

recode_valuesR Documentation

Replace values of some tibble's columns to one value

Description

Replace values of some tibble's columns to one value

Usage

recode_values(.tbl, values, to_value, ...)

Arguments

.tbl

A tibble

values

A vector of values

to_value

A value

...

Column names

Details

If the column type is a character and the replacement a numeric, then the numeric is coerced to a character. If the column type is a numeric and the replacement is a character, then the column is coerced to character. NAs will remains NAs of the right type.

Value

A tibble with recoded values to one value


gnoblet/impactR documentation built on March 20, 2023, 2:24 a.m.