as_fips {fipio} | R Documentation |
Convert a state name, abbreviation, or county name to FIPS codes
as_fips(state, county = NULL)
state |
State names, state abbreviations, or one of the following: "all", "conus", "territories" |
county |
County names or "all" |
a character
vector
fipio::as_fips(state = "California")
fipio::as_fips(state = "NC")
fipio::as_fips(state = "Rhode Island", county = "Washington")
fipio::as_fips(c("CA", "North Carolina"), c("Stanislaus", "NEW HANOVER"))
fipio::as_fips("CONUS")
fipio::as_fips(state = "NC", county = "all")