Build Data

Wrappers around censusapi to build redistricting data at various geographies

build_acs() mem_build_acs()

Build Data from the American Community Survey

build_dec() mem_build_dec()

Build Data from the Decennial Census

Collapse

Functions to collapse racial categories

collapse4()

Collapse Full Race Categories into 4 Categories

collapse4_pop()

Collapse Population Race Categories into 4 Categories

collapse4_vap()

Collapse Voting Age Population Race Categories into 4 Categories

collapse5()

Collapse Full Race Categories into 5 Categories

collapse5_pop()

Collapse Population Race Categories into 5 Categories

collapse5_vap()

Collapse Voting Age Population Race Categories into 5 Categories

Recode

Functions to recode common state variables as other identifiers

recode_abb_ansi()

Recode Abb by ANSI

recode_abb_fips()

Recode Abb by FIPS

recode_abb_name()

Recode Abb by Name

recode_ansi_abb()

Recode ANSI by Abb

recode_ansi_fips()

Recode ANSI by FIPS

recode_ansi_name()

Recode ANSI by Name

recode_fips_abb()

Recode FIPS by Abb

recode_fips_ansi()

Recode FIPS by ANSI

recode_fips_name()

Recode FIPS by Name

recode_name_abb()

Recode Name by Abb

recode_name_ansi()

Recode Name by ANSI

recode_name_fips()

Recode Name by FIPS

Join

Functions to join common state variables to other identifiers

join_abb_ansi()

Join Abb by ANSI

join_abb_fips()

Join Abb by FIPS

join_abb_name()

Join Abb by Name

join_ansi_abb()

Join ANSI by Abb

join_ansi_fips()

Join ANSI by FIPS

join_ansi_name()

Join ANSI by Name

join_fips_abb()

Join FIPS by Abb

join_fips_ansi()

Join FIPS by ANSI

join_fips_name()

Join FIPS by Name

join_name_abb()

Join Name by Abb

join_name_ansi()

Join Name by ANSI

join_name_fips()

Join Name by FIPS

GEOID Tools

Mimic or work with Census GEOIDs

breakdown_geoid()

Breakdown Census GEOID into Components

construct_geoid()

Create GEOID from Default Columns

custom_geoid()

Create a GEOID from Columns

Matching Functions

Transform State Identifiers

match_abb()

Try to Match to State Abbreviation

match_ansi()

Try to Match to State ANSI

match_fips()

Try to Match to State FIPS

match_name()

Try to Match to State Name

Example Data

Data Included for Examples and Testing

fips_2000

Counties FIPS 2000

fips_2010

Counties FIPS 2010

fips_2020

Counties FIPS 2020

mt_county

Montana County Data

stata

stata (State Data)

Other

Other Functions

add_r_environ()

Add Entry to Renviron

has_census_key() get_census_key()

Check or Get Census API Key