Get FIPS codes from names of states or counties inverse of fips2name(), 1-to-1 map statename, ST, countyname to FIPS of each
Source:R/FIPS_FUNCTIONS.R
name2fips.Rd
Get FIPS codes from names of states or counties inverse of fips2name(), 1-to-1 map statename, ST, countyname to FIPS of each
Arguments
- x
vector of 1 or more exact names of states or ST abbreviations or countynames that include the comma and state abbrev., like "Harris County, TX" (not the same as where ST is separate in
fips_counties_from_countyname()
) Ignores case.- exact
if TRUE, query must match exactly but set to FALSE if you want partial matching and possibly more than one result for a query term x
- usegrep
passed to
fips_place_from_placename()
and if TRUE, helps find partial matches- geocoding
passed to
fips_place_from_placename()
- details
set to TRUE to return a table of details on places instead of just the fips vector