search_summarylevels: Search Summary Levels

View source: R/search_census_and_acs.R

search_summarylevelsR Documentation

Search Summary Levels

Description

Search code or description of summary levels for summary_level argument in function read_decennial, read_acs1year, and read_acs5year.

Usage

search_summarylevels(survey, years = NULL, keywords = NULL, view = TRUE)

Arguments

survey

survey type, including "dec" (or "decennial"), "acs1" or "acs5".

years

year or ending year of the survey, can be a single year such as 2010 or a vector like 2014:2016.

keywords

keyword to search in code or description, in the form like "abc def dsdfsa". Rows with all words are returned.

view

display the search result with View if TRUE

Value

A data.table of searched results.

Examples

# Change view = TRUE (default) to View the returned data.
aaa = search_summarylevels("decennial", 2010, "block", view = FALSE)
bbb <- search_summarylevels("acs5", 2009:2010, "40", view = FALSE)

## Not run: 
  # view all summary levels
  search_summarylevels("decennial")
  search_summarylevels("acs1")

## End(Not run)


GL-Li/totalcensus documentation built on Jan. 30, 2024, 9:07 p.m.