Create GEOID from Default Columns
construct_geoid(
.data,
area_type,
state = "state",
county = "county",
tract = "tract",
block_group = "block group",
block = "block",
cd = "cd",
shd = "shd",
ssd = "ssd",
zcta = "zcta"
)
dataframe, tibble, or sf tibble
Defaults to creating the smallest possible with 'spine' for states, counties, tracts, block groups, and blocks. You can also pass one of the on spine geographies to create that specific level. Other options are 'shd' for lower state legislative districts, 'ssd' for upper state legislative districts, 'cd' for congressional districts, or 'zcta' for zip code tabulation areas.
name of column with state component
name of column with county component
name of column with tract component
name of column with block group component
name of column with block component
name of column with cd component
name of column with shd component
name of column with ssd component
name of column with zcta component
.data with new column GEOID