Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Load Census TIGER/Line Shapefiles

v1.0
MIT + file LICENSE
Authors
Kyle Walker [aut, cre], Bob Rudis [ctb]
Initial release
2020-07-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.