str_mxstate | R Documentation |
Format state codes with leading zeroes
str_mxstate(code)
code |
The state code according to the INEGI's Catalogo de entidades federativas, municipios y localidades |
The state code in the format required by the plotting functions
str_mxstate(c("12", "2"))
str_mxstate(c(32, 5))
## Not run:
# warning about invalid state code
str_mxstate("35")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.