Learn R Programming

totalcensus (version 0.6.6)

search_cbsa: Search Core Based Statistical Area (CBSA)

Description

Search CBSA code of Core Based Statistical Area in dataset dict_cbsa. The search also returns which CSA (Combined Statistical Area) that contains the CBSA. If the CBSA contains multiple counties, each county is returned as a row.

Usage

search_cbsa(keywords = NULL, view = TRUE)

Arguments

keywords

keywords to be searched.

view

display the search result with View if TRUE.

Value

A data.table

Details

Quite often, multiple rows are returned. It is necessary to hand pick the right one you are really looking for.

Examples

Run this code
# NOT RUN {
# Change view = TRUE (default) to View the returned data.
aaa <- search_cbsa("providence", view = FALSE)

bbb <- search_cbsa("new york", view = FALSE)

# }
# NOT RUN {
  # view all CBSA code
  search_cbsa()
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab