Learn R Programming

tigris (version 2.1)

list_counties: 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)

Value

data frame of county name and FIPS code or NULL if invalid 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.