Learn R Programming

geobr (version 1.6)

read_statistical_grid: Download spatial data of IBGE's statistical grid

Description

Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)

Usage

read_statistical_grid(code_grid, year = 2010, showProgress = TRUE)

Arguments

code_grid

If two-letter abbreviation of a state is passed, the function will load all grid quadrants that intersect with that state. If code_grid="all", the grid of the whole country will be loaded. Users may also pass a 7-digit code of a grid quadrant to load an specific quadrant.

year

Year of the data. Defaults to 2010. The only year available thus far is 2010.

showProgress

Logical. Defaults to TRUE display progress bar

Value

An "sf" "data.frame" object

See Also

Other general area functions: read_amazon(), read_biomes(), read_census_tract(), read_comparable_areas(), read_conservation_units(), read_country(), read_health_region(), read_immediate_region(), read_intermediate_region(), read_meso_region(), read_micro_region(), read_municipality(), read_neighborhood(), read_region(), read_semiarid(), read_state(), read_weighting_area()

Examples

Run this code
# NOT RUN {
 if (interactive()) {
# Read specific municipality at a given year
grid <- read_statistical_grid(code_grid = 45, year=2010)

# Read all municipalities of a state at a given year
state_grid <- read_statistical_grid(code_grid = "RJ")
}
# }

Run the code above in your browser using DataLab