R/utils_determine_geo_id_names.R

Defines functions determine_geo_id_names

determine_geo_id_names <- function(census.geo) {
  switch(
    census.geo,
    "tract" = c("county", "tract"),
    "block_group" = c("county", "tract", "block_group"),
    "block" = c("county", "tract", "block"),
    # Return `census.geo` unchanged for county, place, and zcta
    census.geo
  )
}

Try the wru package in your browser

Any scripts or data that you put into this service are public.

wru documentation built on May 29, 2024, 9:46 a.m.