powered by
Zips codes in Brazil are known as CEP, the abbreviation for postal code address. CEPs in Brazil are 8 digits long, with the format 'xxxxx-xxx'.
'xxxxx-xxx'
cep_to_state(cep)
A character string with a state abbreviation.
A character string with 8 digits in the format "xxxxxxxx", or with the format 'xxxxx-xxx'.
"xxxxxxxx"
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true") uf <- cep_to_state(cep = '69900-000') # Or: uf <- cep_to_state(cep = '69900000') }
Run the code above in your browser using DataLab