fips_data: Retrieve state and county FIPS codes

View source: R/fips-data.R

fips_dataR Documentation

Retrieve state and county FIPS codes

Description

Retrieve state and county FIPS codes

Usage

fips_data(regions = c("states", "state", "counties", "county"), as_sf = TRUE)

Arguments

regions

The region breakdown for the map, can be one of ("states", "state", "counties", "county"). The default is "states".

as_sf

Defunct, this parameter no longer has any effect and will be removed in the future.

Value

An data frame of FIPS codes of the desired regions.

Examples

str(fips_data())

state_fips <- fips_data()
county_fips <- fips_data(regions = "counties")


usmapdata documentation built on May 29, 2024, 1:33 a.m.