Learn R Programming

geobr (version 0.02)

read_statistical_grid: Download shape files of IBGE's statistical grid (200 x 200 meters) as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)

Description

Download shape files of IBGE's statistical grid (200 x 200 meters) as sf objects. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674)

Usage

read_statistical_grid(code_grid, year = NULL)

Arguments

code_grid

The 7-digit code of a grid quadrant If the two-letter abbreviation of a state is used, the function will load all grid gradrants that intersect with that state. If code_grid="all", the grid of the whole country will be loaded.

year

Year of the data (defaults to 2010). The only year available thus far is 2010.

See Also

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

Examples

Run this code
# NOT RUN {
library(geobr)

# 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