View source: R/recode_column_values.R
recode_df_with_config | R Documentation |
It is assumed that this table has been run through concatenate_df_list_columns_with_config, as columns of type character, and those that were of list:character will be recoded.
recode_df_with_config(tbl, config)
tbl |
A tibble data <- dplyr::tribble( ~col1, ~col2, "a", "c", "a", "d", "b", NA ) |
config |
A list with a named list named "columns" that has an entry for each column needed in the tibble. Each column must have a "name", field. If the config has a "recode" field, this function will be used. The recode field should be a named list with the following optional fields:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.