Learn R Programming

quickerstats (version 0.0.1)

search_data_items: Get available data items based on search terms.

Description

There are large number of data items available. This function can be used to increasingly refine search results until the desired data item is found.

Usage

search_data_items(key, search_terms, exclude = c())

Arguments

key

Your NASS api key.

search_terms

A vector of search terms. Each result will include all terms.

exclude

A vector of search terms to exclude. No result will have any of these.

Value

A list of all search results.

Examples

Run this code
# NOT RUN {
key <- Sys.getenv('NASS_KEY')
search_data_items(key, search_terms=c('corn', 'harvested'),
                  exclude=c('sweet'))
search_data_items(key, search_terms=c('corn', 'price'), exclude=c())
# }

Run the code above in your browser using DataLab