fips_data | R Documentation |
Retrieve state and county FIPS codes
fips_data(
regions = c("states", "state", "counties", "county"),
as_sf = TRUE,
data_year = NULL
)
regions |
The region breakdown for the map, can be one of
( |
as_sf |
Defunct, this parameter no longer has any effect and will be removed in the future. |
data_year |
The year for which to obtain map data.
If the value is |
An data frame of FIPS codes of the desired regions
.
str(fips_data())
state_fips <- fips_data()
county_fips <- fips_data(regions = "counties")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.