humanizeVariable: Humanize variable Add new column with the description of a...

View source: R/humanizeVariable.R

humanizeVariableR 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.

Description

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.

Usage

humanizeVariable(df, variable)

Arguments

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

Value

Return the df data frame with the new variable added.


Eucrow/sapmuebase documentation built on June 8, 2025, 2:16 a.m.