search_fips: Search FIPS Codes

View source: R/search_fips_cbsa.R

search_fipsR Documentation

Search FIPS Codes

Description

Search FIPS code of a states, counties, county subdivisions, places, or consolidated cities in dataset dict_fips. The search also returns summary levels.

Usage

search_fips(keywords = NULL, state = NULL, view = TRUE)

Arguments

keywords

keyword to be searched in NAMES or FIPS.

state

abbreviation of a state.

view

display the search result with View if TRUE.

Details

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.

Value

A data.table

Examples

# 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)


GL-Li/rawcensus2010 documentation built on Jan. 19, 2024, 7:11 p.m.