fips_codes: Dataset with FIPS codes for US states and counties

Description Usage Format Details

Description

Built-in dataset for smart state and county lookup. To access the data directly, issue the command data(fips_codes).

Usage

1

Format

An object of class data.frame with 3237 rows and 5 columns.

Details

Dataset with FIPS codes for US states and counties

Built-in dataset for use with the lookup_code function. To access the data directly, issue the command data(fips_codes).

Note: this dataset includes FIPS codes for all counties that have appeared in the decennial Census or American Community Survey from 2010 to the present. This means that counties that have been renamed or absorbed into other geographic entities since 2010 remain in this dataset along with newly added or renamed counties.

If you need the FIPS codes and names for counties for a particular Census year, you can use the counties function from the tigris package and set the year parameter as required.


tidycensus documentation built on Sept. 24, 2021, 1:07 a.m.