state_fips_to_name: Get state, county or metropolitan area names from FIPS or...

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Look up county or metropolitan area names by FIPS or CBSA codes. Looking up FIPS code is done with the first 2 numbers (state) or 5 numbers (county) and therefore can be called with longer FIPS codes.

Usage

1
2
3
4
5

Arguments

code

Vector of FIPS or CBSA codes to look up.

Value

A vector of state, county or metro names.

See Also

name_to_fips(), name_to_cbsa()

Examples

1
2
3
4
5
state_fips_to_name("42")
state_fips_to_name("42003") # same as previous
county_fips_to_name("42003")
county_fips_to_name("42000") # the county "000" returns the state name
cbsa_to_name("38300")

covidcast documentation built on May 4, 2021, 9:08 a.m.