uflist: All the State's UF Codes.

Description Usage Arguments Value Author(s) References Examples

View source: R/uflist.R

Description

Returns a tibble which contains the IBGE identification code of each one of all 23 UFs (Units of the Federation) in Brazil.

Usage

1
uflist(region = NA)

Arguments

region

filter the UFs (Units of the Federation or States) by geographical region. If NA, all state are shown. According to the Brazilian Institute of Geography and Statistics, the country is divided in 5 regions: "Norte", "Nordeste", "Centro-Oeste", "Sul" and "Sudeste".

Value

a tibble with 3 columns.

State

The full name of the state.

UF

The abbreviation of the state's name.

num

The identification number of the state.

region

Region of the country in which the State is located.

Author(s)

Joao Pedro Oliveira dos Santos, International Relations Institute, Pontifical Catholic University of Rio de Janeiro

References

Source: IBGE (Brazilian Institute of Geography and Statistics)

Examples

1
2
3
4
5
## Not run: 
uflist(reg = NA) # show all states of the country.
uflist(region = "Sul") # only exhibit States in the 'Sul' region of the country.

## End(Not run)

Example output

# A tibble: 27 x 4
   State          UF      num regiao      
   <chr>          <chr> <dbl> <chr>       
 1 Acre           AC       12 Norte       
 2 Alagoas        AL       27 Nordeste    
 3 Amapa          AP       16 Norte       
 4 Amazonas       AM       13 Norte       
 5 Bahia          BA       29 Nordeste    
 6 Ceara          CE       23 Nordeste    
 7 Espirito Santo ES       32 Sudeste     
 8 Goias          GO       52 Centro-Oeste
 9 Maranhao       MA       21 Nordeste    
10 Mato Grosso    MT       51 Centro-Oeste
# … with 17 more rows
# A tibble: 3 x 4
  State             UF      num regiao
  <chr>             <chr> <dbl> <chr> 
1 Parana            PR       41 Sul   
2 Rio Grande do Sul RS       43 Sul   
3 Santa Catarina    SC       42 Sul   

owdbr documentation built on Nov. 11, 2019, 9:06 a.m.

Related to uflist in owdbr...