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.
Thsi package is now on CRAN and can be installed through the typical method:
install.packages("usdarnass")
Alternatively, the most up-to-date version of the package can be
installed with the devtools
package. However, beware that this will be
a development version:
# install.packages("devtools")
devtools::install_github("rdinter/usdarnass")
Once installed through either method, you can load package the conventional way:
library("usdarnass")
See the Get started article for a more in depth discussion of the package features.
See the documentation site.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.