recode_cols()
reatribui valores para colunas codificadas tal como especificado pela entrada “cols” fornecida pelo utilizador
Usage
recode_cols(
df,
cols = c("mode_dispensation_id", "regimen_id", "location_uuid", "age", "form_id",
"state_id", "sex"),
options = list(df_disp_mode = data_type_id_lookup, df_regimen = data_type_id_lookup,
df_form = data_type_id_lookup, df_state = data_type_id_lookup, df_location =
data_location_lookup, age_column = "age", sex_column = "sex")
)
Examples
if (FALSE) { # \dontrun{
# Caso de uso para recodificar dispensation_id, regimen_id, location_uuid, age, form_id, state_id, and sex
df <- recode_cols(
df = df,
cols = c("mode_dispensation_id",
"regimen_id",
"location_uuid",
"age",
"form_id",
"state_id",
"sex"))} # }