state_fips_to_name | R Documentation |
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.
state_fips_to_name(code)
county_fips_to_name(code)
cbsa_to_name(code)
code |
Vector of FIPS or CBSA codes to look up. |
A vector of state, county or metro names.
name_to_fips()
, name_to_cbsa()
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.