nassqs_record_count: Get a count of number of records for given parameters.

View source: R/wrappers.R

nassqs_record_countR Documentation

Get a count of number of records for given parameters.

Description

Returns the number of records that fit a set of parameters. Useful if your current parameter set returns more than the 50,000 record limit.

Usage

nassqs_record_count(...)

Arguments

...

either a named list of parameters or a series of parameters to form the query

Value

integer that is the number of records that are returned from the API in response to the query

Examples

## Not run: 
  # Check the number of records returned for corn in 1995, Washington state
  params <- list(
    commodity_desc = "CORN",
    year = "2005",
    agg_level_desc = "STATE",
    state_name = "WASHINGTON"
  )
  
  records <- nassqs_record_count(params) 
  records  # returns 17

## End(Not run)

potterzot/rnassqs documentation built on Sept. 10, 2023, 4:09 p.m.