get_brazil_state_capital()
returns a vector with the capital names of
Brazilian states or federal units.
Arguments
- x
(Optional) A
character
vector with the names of Brazilian states or federal units. IfNULL
, returns all state capital names (Default:NULL
).
Value
A character
vector with the names of
Brazilian state capitals.
Details
The data from this function is based on data from the Brazilian Institute of Geography and Statistics (IBGE, n.d.).
References
Instituto Brasileiro de Geografia e Estatística. (n.d.). Território [Territory] [Dataset]. SIDRA. https://sidra.ibge.gov.br/territorio
See also
Other Brazil functions:
get_brazil_fu()
,
get_brazil_municipality()
,
get_brazil_municipality_code()
,
get_brazil_region()
,
get_brazil_state()
,
get_brazil_state_by_utc()
,
get_brazil_state_code()
,
get_brazil_state_latitude()
,
get_brazil_state_longitude()
,
render_brazil_address()
Examples
get_brazil_state_capital()
#> Acre Alagoas Amapá Amazonas
#> "Rio Branco" "Maceió" "Macapá" "Manaus"
#> Bahia Ceará Distrito Federal Espírito Santo
#> "Salvador" "Fortaleza" "Brasília" "Vitória"
#> Goiás Maranhão Mato Grosso Mato Grosso do Sul
#> "Goiânia" "São Luís" "Cuiabá" "Campo Grande"
#> Minas Gerais Pará Paraíba Paraná
#> "Belo Horizonte" "Belém" "João Pessoa" "Curitiba"
#> Pernambuco Piauí Rio de Janeiro Rio Grande do Norte
#> "Recife" "Teresina" "Rio de Janeiro" "Natal"
#> Rio Grande do Sul Rondônia Roraima Santa Catarina
#> "Porto Alegre" "Porto Velho" "Boa Vista" "Florianópolis"
#> São Paulo Sergipe Tocantins
#> "São Paulo" "Aracaju" "Palmas"
get_brazil_state_capital("piaui")
#> [1] "Teresina"
#> [1] "Teresina" # Expected
get_brazil_state_capital("pi")
#> [1] "Teresina"
#> [1] "Teresina" # Expected