list_counties: Return a data frame of county names & FIPS codes for a given...

View source: R/helpers.R

list_countiesR Documentation

Return a data frame of county names & FIPS codes for a given state

Description

Return a data frame of county names & FIPS codes for a given state

Usage

list_counties(state)

Arguments

state

String representing the state you'd like to look up. Accepts state names (spelled correctly), e.g. "Texas", or postal codes, e.g. "TX". Can be lower-case.

Value

data frame of county name and FIPS code or NULL if invalid state


tigris documentation built on May 29, 2024, 2:20 a.m.