Learn R Programming

censable (version 0.0.5)

breakdown_geoid: Breakdown Census GEOID into Components

Description

Breakdown Census GEOID into Components

Usage

breakdown_geoid(.data, GEOID = "GEOID", area_type = "spine")

Value

.data with added identifying columns based on area_type

Arguments

.data

dataframe, tibble, or sf tibble

GEOID

Column in .data with Census GEOID

area_type

String, default is 'spine' with type of GEOID. Options are 'spine' for states, counties, tracts, block groups, and blocks. 'shd' for lower state legislative districts, 'ssd' for upper state legislative districts, 'cd' for congressional districts, or 'zcta' for zip code tabulation areas.

Examples

Run this code
data(mt_county)
mt_county <- mt_county %>% breakdown_geoid()

Run the code above in your browser using DataLab