list_counties {tigris}R 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


[Package tigris version 2.1 Index]