search_geoheaders {totalcensus} | R Documentation |
Search Geographic Headers
Description
Search in field reference or description of geographic header
records to find the reference of "geo_headers" argument in function read_decennial
,
read_acs1year
, and read_acs5year
.
Usage
search_geoheaders(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
data.table matching the search criteria
Examples
# Change view = TRUE (default) to View the returned data.
# search geoheader that contains keyword "india" in decennial 2010
aaa <- search_geoheaders("decennial", 2000, "india", view = FALSE)
# search for lattitude
bbb <- search_geoheaders("dec", 2010, "latitu", view = FALSE)
## Not run:
# browse all geoheaders in ACS i year in View()
search_geoheaders("acs1")
## End(Not run)
[Package totalcensus version 0.6.6 Index]