nassqs_byfips: Allow querying for a given set of counties based on FIPS.

View source: R/wrappers.R

nassqs_byfipsR Documentation

Allow querying for a given set of counties based on FIPS.

Description

This wrapper allows specifying a list of counties by FIPS code. It iterates over each state in the list of FIPS, downloading for each separately and then concatenating.

Usage

nassqs_byfips(fips, ...)

Arguments

fips

a list of 5-digit fips codes

...

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

Value

a data.frame of data for each fips code

Examples

## Not run: 
nassqs_byfips(
  fips = c("19001", "17005", "17001"),
  commodity_desc = "CORN",
  year = 2019,
  statisticcat_desc = "YIELD")

## End(Not run)

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