List available counties for a state
listCounties.RdList available counties for a state
Examples
# Use the included example data
utah_counties <- listCounties(
state_fips = "49",
year = 2024,
csv_path = getCensusDataPath()
)
#> Reading census data from: /home/runner/work/_temp/Library/multigroup.vaccine/extdata/cc-est2024-syasex-49.csv
if (FALSE) { # \dontrun{
# Download from web (requires internet)
utah_counties_web <- listCounties(state_fips = "49", year = 2024)
# With caching
utah_counties_cached <- listCounties(state_fips = "49", cache_dir = "~/census_cache")
} # }