{"id":32206579,"url":"https://github.com/bradlindblad/tidyusda","last_synced_at":"2026-02-22T19:05:24.891Z","repository":{"id":37484213,"uuid":"204237605","full_name":"bradlindblad/tidyUSDA","owner":"bradlindblad","description":"An interface to USDA Quick Stats data with mapping capabilities.","archived":false,"fork":false,"pushed_at":"2023-10-26T03:07:22.000Z","size":14449,"stargazers_count":45,"open_issues_count":4,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-09T13:03:02.672Z","etag":null,"topics":["geospatial","gis","r","tigris","usda"],"latest_commit_sha":null,"homepage":"https://bradlindblad.github.io/tidyUSDA","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradlindblad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-25T02:46:19.000Z","updated_at":"2025-10-06T09:28:42.000Z","dependencies_parsed_at":"2023-01-28T16:30:58.485Z","dependency_job_id":"db28bd1d-d19a-4fa2-92e4-c0a34d35b694","html_url":"https://github.com/bradlindblad/tidyUSDA","commit_stats":{"total_commits":201,"total_committers":5,"mean_commits":40.2,"dds":"0.29850746268656714","last_synced_commit":"f72e05aa43d1fbce9c6ea511b4490fe7ce5ceb75"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/bradlindblad/tidyUSDA","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradlindblad%2FtidyUSDA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradlindblad%2FtidyUSDA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradlindblad%2FtidyUSDA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradlindblad%2FtidyUSDA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradlindblad","download_url":"https://codeload.github.com/bradlindblad/tidyUSDA/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradlindblad%2FtidyUSDA/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29723574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"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":["geospatial","gis","r","tigris","usda"],"created_at":"2025-10-22T05:31:27.017Z","updated_at":"2026-02-22T19:05:24.886Z","avatar_url":"https://github.com/bradlindblad.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# tidyUSDA \u003cimg src='https://raw.githubusercontent.com/bradlindblad/tidyUSDA/dev/images/logo.png' align=\"right\" height=\"200\" /\u003e\n\n[![R build status](https://github.com/bradlindblad/tidyUSDA/workflows/R-CMD-check/badge.svg)](https://github.com/bradlindblad/tidyUSDA/actions)\n[![pkgdown](https://github.com/bradlindblad/tidyUSDA/actions/workflows/pkgdown.yaml/badge.svg?branch=master)](https://github.com/bradlindblad/tidyUSDA/actions/workflows/pkgdown.yaml)\n[![Codecov test coverage](https://codecov.io/gh/bradlindblad/tidyusda/branch/master/graph/badge.svg)](https://app.codecov.io/gh/bradlindblad/tidyusda?branch=master)\n[![metacran downloads](https://cranlogs.r-pkg.org/badges/grand-total/tidyUSDA)](https://cran.r-project.org/package=tidyUSDA)\n[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n[![CRAN status](https://www.r-pkg.org/badges/version/tidyUSDA)](https://CRAN.R-project.org/package=tidyUSDA)\n[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.6.1-6666ff.svg)](https://cran.r-project.org/)\n\n\n\n\n\n\n**tidyUSDA**, an interface to USDA Quick Stats data with mapping capabilities.\n\n\n## Overview\n**tidyUSDA** provides the R user with a consistent API to pull USDA census and survey data from Quickstats. \n\n* `getQuickstat()` lets you pass values to the fields you see on the QuickStats website, as well as include a simple features (SF) geometry field for the county or state level. \n\n* `View({parameter name})` lets you view QuickStats all available values for a given field (which you would input into getQuickstats(), preferably with copy paste)\n\n* `plotUSDA()` provides a quick way to plot your data if you set geometry = TRUE\n\n## Installation\n```\n# Install directly from CRAN:\ninstall.packages(\"tidyUSDA\")\n```\n\n### Dependencies\nDepending on which operating system you are installing tidyUSDA on, you may need to add external dependencies.\n\nPlease see the 'Installation' section on the [sf package homepage](https://r-spatial.github.io/sf/) for details.\n\n## Usage\n\nCheck out the vignette with:\n```\nvignette(\"using_tidyusda\")\n```\n\nYou first need to grab a free API token from the USDA at their Quickstats website.    \n\n```\nlibrary(tidyUSDA)\n\n# Save your API token to a variable, or better yet, use the keyring package to store it securely\nkey \u003c- '1234-abcd'\n\n\n\n# View all parameter names for the 'program' field\nView(tidyUSDA::allProgram)\n\n\n\n# Get count of operations with sales in 2017\nops.with.sales \u003c- tidyUSDA::getQuickstat(\n  sector=NULL,\n  group=NULL,\n  commodity=NULL,\n  category=NULL,\n  domain=NULL,\n  county=NULL,\n  key = key,\n  program = 'CENSUS',\n  data_item = 'CROP TOTALS - OPERATIONS WITH SALES',\n  geographic_level = 'COUNTY',\n  year = '2017',\n  state = NULL,\n  geometry = T,\n  lower48 = T)\n\n\n\n# Plot this data for each state\ntidyUSDA::plotUSDA(df = ops.with.sales)\n```\nThe last function returns this ggplot choropleth:    \n\u003cimg src='https://github.com/bradlindblad/tidyUSDA/blob/master/images/choropleth.png?raw=true' align=\"center\"  /\u003e\n\n\n## Contact\n* [Brad Lindblad](https://github.com/bradlindblad)\n\n***This product uses the NASS API but is not endorsed or certified by NASS.***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradlindblad%2Ftidyusda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradlindblad%2Ftidyusda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradlindblad%2Ftidyusda/lists"}