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
#> [1] "12" "02"#> [1] "32" "05"if (FALSE) { # warning about invalid state code str_mxstate("35") }