Creates a block level dataset, using the decennial census information, with the standard redistricting variables.
create_block_table(
state,
county = NULL,
geometry = TRUE,
year = 2020,
mem = FALSE,
epsg = 3857
)
Required. Two letter state postal code.
Optional. Name of county. If not provided, returns blocks for the entire state.
Defaults to TRUE. Whether to return the geometry or not.
year, must be 2000, 2010, or 2020
Default is FALSE. Set TRUE to use memoized backend.
numeric EPSG code to planarize to. Default is 3857.
dataframe with data for each block in the selected region. Data includes 2 sets of columns for each race or ethnicity category: population (pop) and voting age population (vap)
if (FALSE) {
# uses the Census API
create_block_table(state = 'NY', county = 'Rockland', geometry = FALSE)
}