Learn R Programming

ColOpenData (version 1.0.0)

name_to_standard_dep: Translate department names to official departments' DIVIPOLA names

Description

Department names are usually manually input, which leads to multiple errors and lack of standardization. This functions translates department names to their respective official names from DIVIPOLA.

Usage

name_to_standard_dep(department_name)

Value

character vector with the DIVIPOLA name of the departments.

Arguments

department_name

character vector with the names to be translated.

Examples

Run this code
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true")
dptos <- c("Bogota DC", "San Andres")
name_to_standard_dep(dptos)
}

Run the code above in your browser using DataLab