FIPS - Get names for the Counties CONTAINING the given census units (of any type)
Source:R/FIPS_FUNCTIONS.R
fips2countyname.Rd
FIPS - Get names for the Counties CONTAINING the given census units (of any type)
Usage
fips2countyname(fips, includestate = c("ST", "Statename", "")[1])
Value
vector of county names, same length as input fips vector, optionally with comma and 2-character abbreviation or full state name.
Details
NOTE THAT ISLAND AREAS WORK DIFFERENTLY SINCE THEIR FIPS ARE NOT QUITE LIKE COUNTY FIPS
FIRST 5 LETTERS OF FIPS ARE NOT THE UNIQUE "COUNTY" CODE IN Northern Mariana Islands
Examples
cbind(
fips = fipsmix,
type = fipstype(fipsmix),
cfips = fips2countyfips(fipsmix),
countyname = fips2countyname(fipsmix)
)
cfips = fips_counties_from_state_abbrev("RI")
fips2countyname(cfips, includestate = "Statename")
fips2countyname(cfips)
fips2name(cfips)
fips2name(10001)
fips2name(fips_counties_from_statename(c("Delaware", "Rhode Island")))