str_mxstate: str_mxstate

Description Usage Arguments Value See Also Examples

View source: R/string.R

Description

str_mxstate

Usage

1

Arguments

code

The state code according to the INEGI's Catalogo de entidades federativas, municipios y localidades

Value

The state 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_mxstate(c("12", "2"))
str_mxstate(c(32, 5))

## Not run: 
# warning about invalid state code
str_mxstate("35")

## End(Not run)

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