search_data_items: Get available data items based on search terms.

Description Usage Arguments Value Examples

View source: R/nass_api.R

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

1
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

1
2
3
4
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())

quickerstats documentation built on Oct. 23, 2020, 8:11 p.m.