recode_item.Rd
Recode values of a data frame
recode_item(data, cols, code_from = NULL, code_to = NULL, retain_code = NULL)
A data.frame or a data.frame extension (e.g. a tibble).
Columns that need to be recoded. See `dplyr::dplyr_tidy_select` for available options.
vector. the order must match with vector for `code_to`
vector. the order must match with vector for `code_from`
vector. Specify the values to be retain
An object of the same type as .data. The output has the following properties: 1. Columns except the recoded columns from .data will be preserved 2. Recoded columns