state_fips_to_name {covidcast}R Documentation

Get state, county or metropolitan area names from FIPS or CBSA codes

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

state_fips_to_name(code)

county_fips_to_name(code)

cbsa_to_name(code)

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

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")


[Package covidcast version 0.5.2 Index]