recode_values | R Documentation |
Replace values of some tibble's columns to one value
recode_values(.tbl, values, to_value, ...)
.tbl |
A tibble |
values |
A vector of values |
to_value |
A value |
... |
Column names |
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.
A tibble with recoded values to one value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.