View source: R/search_fips_cbsa.R
search_fips | R Documentation |
Search FIPS code of a states, counties, county subdivisions, places, or
consolidated cities in dataset dict_fips
. The search also returns
summary levels.
search_fips(keywords = NULL, state = NULL, view = TRUE)
keywords |
keyword to be searched in NAMES or FIPS. |
state |
abbreviation of a state. |
view |
display the search result with View if TRUE. |
Quite often, multiple rows are returned. It is necessary to hand pick the right one you are really looking for.
The function search_fips
has changed summary level 061 to 060, and
162 to 160 in search results.
The summary levels in dict_fips
are 010, 040, 050, 061, 162, and 170.
The level 061 is for Minor Civil Division (MCD)/Census County Division (CCD) (10,000+). It
does not appear in those used in decennial census and ACS surveys,
which instead have 060 for County Subdivision.
Level 061 is part of 060 and is replaced with 060 in order to use the census data. Similarly,
162 is replaced with 160.
A data.table
# Change view = TRUE (default) to View the returned data.table.
# Search fips of Lincoln in Rhode Island.
aaa <- search_fips("lincoln", "RI", view = FALSE)
# search FIPS number in all states
bbb <- search_fips("08375", view = FALSE)
## Not run:
# view all fips code
search_fips()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.