Learn R Programming

usdarnass

An alternative for downloading various USDA data from https://quickstats.nass.usda.gov/ through R. You must sign up for an API key from the mentioned website in order for this package to work. Disclaimer:

This product uses the NASS API but is not endorsed or certified by NASS.

Install

Eventually, this package will be uploaded to CRAN at which point you should be able to install the package through the typical method:

install.packages("usdarnass")

However, until the package has been submitted to CRAN the only way to use the package is through the development version (needs devtools installed):

# install.packages("devtools")
devtools::install_github("rdinter/usdarnass")

Once installed through either method, you can load package the conventional way:

library("usdarnass")

Usage

See the Get started article for a more in depth discussion of the package features.

Documentation

See the documentation site.

See Also

There are other R packages that work with USDA Quick Stats that may be more useful to others:

If you are interested in download all of the Quick Stats data to your local machine, then their FTP site is the best option for downloading all.

Copy Link

Version

Install

install.packages('usdarnass')

Monthly Downloads

108

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Robert Dinterman

Last Published

June 21st, 2019

Functions in usdarnass (0.1.0)

nass_set_key

Set a Quick Stats API key
nass_param

Get all possible values of a parameter
nass_data

Get data from the Quick Stats query
nass_count

Get number of observations from Quick Stats query