Learn R Programming

geobr (version 0.02)

read_census_tract: Download shape files of census sectors of the Brazilian Population Census

Description

Download shape files of census sectors of the Brazilian Population Census

Usage

read_census_tract(CODE, year = NULL, zone = "urban")

Arguments

CODE

One can either pass the 7-digit code of a Municipality or the 2-digit code of a State.If CODE="all", all census sectors of the country are loaded.

year

the year of the data download (defaults to 2010)

zone

"urban" or "rural" for separation in the year 2000

See Also

Other general area functions: read_country, read_meso_region, read_micro_region, read_municipality, read_region, read_state, read_statistical_grid, read_weighting_area

Examples

Run this code
# NOT RUN {
# Exemplos
dados <- read_census_tract(year=2010)
dados <- read_census_tract(123,2010)
dados <- read_census_tract("df",2010)
dados <- read_census_tract(1302603,2010)
dados <- read_census_tract(35)
dados <- read_census_tract(14,2010)
dados <- read_census_tract()

# mapa
library(mapview)
mapview(dados)
# }
# NOT RUN {



# }

Run the code above in your browser using DataLab