create_tract_table: Create Tract Level Data

View source: R/datatables.R

create_tract_tableR Documentation

Create Tract Level Data

Description

Create Tract Level Data

Usage

create_tract_table(
  state,
  county,
  geometry = TRUE,
  year = 2019,
  mem = FALSE,
  epsg = 3857
)

Arguments

state

Required. Two letter state postal code.

county

Optional. Name of county. If not provided, returns tracts for the entire state.

geometry

Defaults to TRUE. Whether to return the geography or not.

year

year, must be >= 2009 and <= 2019.

mem

Default is FALSE. Set TRUE to use memoized backend.

epsg

numeric EPSG code to planarize to. Default is 3857.

Value

dataframe with data for each tract in the selected region. Data includes 3 sets of columns for each race or ethnicity category: population (pop), voting age population (vap), and citizen voting age population (cvap)

Examples

## Not run: 
# Relies on Census Bureau API
tract <- create_tract_table('NY', 'Rockland', year = 2018)

## End(Not run)

christopherkenny/geomander documentation built on Feb. 18, 2024, 7:58 p.m.