View source: R/humanizeVariable.R
humanizeVariable | R Documentation |
Humanize variable Add new column with the description of a variable coded... I mean, of a encoded column create a new one with the appropriate description. It's available for variables with a data source: COD_PUERTO, COD_BARCO, COD_ARTE, COD_ORIGEN, COD_TIPO_MUE, COD_ESP_MUE, COD_ESP_CAT. Before the humanization, checks the correct format of the variable.
humanizeVariable(df, variable)
df |
df which contains the variable to humanize |
variable |
one of this values: COD_PUERTO, COD_BARCO, COD_ARTE, COD_ORIGEN, COD_TIPO_MUE, COD_ESP_MUE, COD_ESP_CAT |
Return the df data frame with the new variable added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.