str_mxmunicipio: str_mxmunicipio

Description Usage Arguments Value See Also Examples

View source: R/string.R

Description

str_mxmunicipio

Usage

1
str_mxmunicipio(code, municipio_code)

Arguments

code

The sate or combined state and municipio code if the municipio_code variable is missing

municipio_code

The municipio code

Value

The state and municipio code in the format required by the plotting functions

See Also

http://www.inegi.org.mx/est/contenidos/proyectos/aspectosmetodologicos/clasificadoresycatalogos/catalogo_entidades.aspx

Examples

1
2
3
4
5
6
7
8
str_mxmunicipio(c("1006", "2003"))
str_mxmunicipio(c(32, 5), c(9, 18))

## Not run: 
# warning about invalid code
str_mxmunicipio(33, 999)

## End(Not run)

diegovalle/mxmaps documentation built on July 16, 2017, 6:14 p.m.