muni.RdA dataset containing useful data for joining with city datasets, such as city codes, acronyms of the federative units and regions.
munia data frame with 5572 rows and 17 columns:
IBGE code (7 digits)
IBGE code (6 digits)
Municipality name (original IBGE)
Clean municipality name (without accents, upper case)
Name of the original federative unit
Federative unit initials
code of IBGE federative unit
region name
municipality TSE code
Brazilian Federal Revenue code of the municipality
Central Bank of Brazil code of the municipality
1 if municipality existed in 1991, 0 otherwise
1 if municipality existed in 2000, 0 otherwise
1 if municipality existed in 2010, 0 otherwise
longitude based on shapefile centroid
latitude based on shapefile centroid
TRUE if federative unit is a capital, FALSE otherwise
Municipalities dataset enriched with external data.
summary(muni)
#>    muni_id           muni_id_6           muni_nm          muni_nm_clean     
#>  Length:5572        Length:5572        Length:5572        Length:5572       
#>  Class :character   Class :character   Class :character   Class :character  
#>  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
#>                                                                             
#>                                                                             
#>                                                                             
#>                                                                             
#>     uf_nm             uf_sigla            uf_id            regiao_nm        
#>  Length:5572        Length:5572        Length:5572        Length:5572       
#>  Class :character   Class :character   Class :character   Class :character  
#>  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
#>                                                                             
#>                                                                             
#>                                                                             
#>                                                                             
#>     tse_id             rf_id              bcb_id           existia_1991   
#>  Length:5572        Length:5572        Length:5572        Min.   :0.0000  
#>  Class :character   Class :character   Class :character   1st Qu.:1.0000  
#>  Mode  :character   Mode  :character   Mode  :character   Median :1.0000  
#>                                                           Mean   :0.8063  
#>                                                           3rd Qu.:1.0000  
#>                                                           Max.   :1.0000  
#>                                                           NA's   :2       
#>   existia_2000     existia_2010         lon              lat         
#>  Min.   :0.0000   Min.   :0.0000   Min.   :-73.44   Min.   :-33.653  
#>  1st Qu.:1.0000   1st Qu.:1.0000   1st Qu.:-50.91   1st Qu.:-22.831  
#>  Median :1.0000   Median :1.0000   Median :-46.52   Median :-18.113  
#>  Mean   :0.9887   Mean   :0.9991   Mean   :-46.25   Mean   :-16.458  
#>  3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:-41.40   3rd Qu.: -8.503  
#>  Max.   :1.0000   Max.   :1.0000   Max.   :-32.42   Max.   :  4.685  
#>  NA's   :2        NA's   :2                                          
#>   capital       
#>  Mode :logical  
#>  FALSE:5545     
#>  TRUE :27       
#>                 
#>                 
#>                 
#>