Download block-level decennial census data with the standard redistricting variables used throughout the package.
create_block_table(
state,
county = NULL,
geometry = TRUE,
year = 2020,
mem = FALSE,
epsg = 3857
)Two-letter state postal code.
Optional county name or code. If omitted, returns blocks for the entire state.
Logical. If TRUE, include geometry.
Census year. Intended for decennial years, especially 2010 and
2020.
Logical. If TRUE, use the memoized censable backend.
numeric EPSG code to planarize to. Default is 3857.
dataframe or sf object with one row per block. Includes population
and voting-age-population summaries by race and ethnicity.
if (FALSE) { # \dontrun{
# uses the Census API
create_block_table(state = 'NY', county = 'Rockland', geometry = FALSE)
} # }