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

fips_info

Retrieve states or counties using FIPS codes


Description

Retrieve states or counties using FIPS codes

Usage

fips_info(fips)

## S3 method for class 'numeric'
fips_info(fips)

## S3 method for class 'character'
fips_info(fips)

Arguments

fips

A one to five digit, either numeric or character, vector of FIPS codes for which to look up states or counties. States have a two digit FIPS code and counties have a five digit FIPS code (where the first 2 numbers pertain to the state).

Value

A data frame with the states or counties and the associated FIPS codes.

If 'fips' is omitted, the data frame containing all available states is returned.

Examples

fips_info(2)
fips_info("2")
fips_info(c("02", "03", "04"))

fips_info(2016)
fips_info(c("02016", "02017"))

usmap

US Maps Including Alaska and Hawaii

v0.5.2
GPL-3 | file LICENSE
Authors
Paolo Di Lorenzo [aut, cre]
Initial release

We don't support your browser anymore

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