{"id":42217003,"url":"https://github.com/emraher/rnass","last_synced_at":"2026-01-27T01:16:29.746Z","repository":{"id":148801501,"uuid":"44657256","full_name":"emraher/rnass","owner":"emraher","description":"Interface to  United States Department of Agriculture (USDA) National Agricultural Statistics Service (NASS) Database","archived":false,"fork":false,"pushed_at":"2016-02-27T06:02:05.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-27T15:47:38.936Z","etag":null,"topics":["agriculture","nass","r","rpackage","usda"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emraher.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-10-21T06:35:26.000Z","updated_at":"2018-08-01T21:10:00.000Z","dependencies_parsed_at":"2023-05-30T15:30:45.946Z","dependency_job_id":null,"html_url":"https://github.com/emraher/rnass","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"d1f275874ba63a65b0348f08e7c39098c26a346a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emraher/rnass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emraher%2Frnass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emraher%2Frnass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emraher%2Frnass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emraher%2Frnass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emraher","download_url":"https://codeload.github.com/emraher/rnass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emraher%2Frnass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28795259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"ssl_error","status_checked_at":"2026-01-27T01:07:06.974Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agriculture","nass","r","rpackage","usda"],"created_at":"2026-01-27T01:16:29.107Z","updated_at":"2026-01-27T01:16:29.738Z","avatar_url":"https://github.com/emraher.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"rnass\n=======\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  comment = \"#\u003e\",\n  warning = FALSE,\n  message = FALSE\n)\n```\n\n[![Build Status](https://api.travis-ci.org/emraher/rnass.png)](https://travis-ci.org/emraher/rnass)\n\n## Interface to USDA NASS QuickStats\n\n## WARNING\nThis is my first attempt for an R package. I heavily benefited from [ropensci/rusda](https://github.com/ropensci/rusda) and [ropensci/rnoaa](https://github.com/ropensci/rnoaa). \n\n## Description\n\nFrom USDA/NASS:\n\n\"The National Agricultural Statistics Service (NASS) offers Quick Stats, an on-line database containing official published aggregate estimates related to U.S. agricultural production. NASS develops these estimates from data collected through:\n\n    1) hundreds of sample surveys conducted each year covering virtually every aspect of U.S. agriculture\n    2) the Census of Agriculture conducted every five years providing state- and county-level aggregates\n\nThe Quick Stats application programming interface (API) provides direct access to the statistical information in the Quick Stats database. We invite developers to use this API and to give us feedback so we can continue to improve it.\" \n\n`rnass` is an attempt to an interface to Quick Stats. Note that in order to use this package you will need an API key. Request your key from [here](http://quickstats.nass.usda.gov/api).\n\n## Get rnass\n\n```{r eval=FALSE}\ninstall.packages(\"devtools\")\ndevtools::install_github(\"emraher/rnass\")\n```\n\nAnd load `rnass`\n\n```{r}\nlibrary(\"rnass\")\n```\n\n## Example 1\nGet count\n\n```{r}\ncount \u003c- nass_count(source_desc = \"SURVEY\", token = \"YOUR API KEY\")\ncount \u003c- nass_count(source_desc = \"SURVEY\", year = \"1990\", token = \"YOUR API KEY\")\n```\n\n\n\n## Example 2\nGet parameters\n\n```{r}\nparameters \u003c- nass_param(param = \"source_desc\", token = \"YOUR API KEY\")\nparameters \u003c- nass_param(param = \"region_desc\", token = \"YOUR API KEY\")\n```\n\n## Example 3\nGet data\n\n```{r}\ndata \u003c- nass_data(source_desc = \"SURVEY\", sector_desc = \"CROPS\", commodity_desc = \"CORN\", state_name = \"KANSAS\", year = \"2014\", token =\"YOUR API KEY\" )\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femraher%2Frnass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femraher%2Frnass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femraher%2Frnass/lists"}