{"id":19143454,"url":"https://github.com/nikdata/avocado","last_synced_at":"2026-02-17T19:37:27.711Z","repository":{"id":132884801,"uuid":"320915030","full_name":"nikdata/avocado","owner":"nikdata","description":"Package for tracking weekly Hass Avocado sales for contiguous US","archived":false,"fork":false,"pushed_at":"2025-03-18T18:01:21.000Z","size":10456,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T16:44:40.915Z","etag":null,"topics":["avocado","avocado-dataset","hass"],"latest_commit_sha":null,"homepage":"https://nikdata.github.io/avocado/","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/nikdata.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-12T20:11:17.000Z","updated_at":"2025-03-18T17:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b4cb293-dfc7-4349-b222-8dd9e8c0a6af","html_url":"https://github.com/nikdata/avocado","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nikdata/avocado","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdata%2Favocado","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdata%2Favocado/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdata%2Favocado/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdata%2Favocado/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikdata","download_url":"https://codeload.github.com/nikdata/avocado/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikdata%2Favocado/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29555709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["avocado","avocado-dataset","hass"],"created_at":"2024-11-09T07:31:27.191Z","updated_at":"2026-02-17T19:37:22.702Z","avatar_url":"https://github.com/nikdata.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# avocado \u003ca href='https://nikdata.github.io/avocado/'\u003e\u003cimg src='man/figures/avocado.png' alt=\"avocado R package logo\" align=\"right\" width=\"150\" height=\"150\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/avocado)](https://cran.r-project.org/package=avocado)\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![GitHub commit](https://img.shields.io/github/last-commit/nikdata/avocado)](https://github.com/nikdata/avocado/commit/main)\n[![R-CMD-check](https://github.com/nikdata/avocado/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/nikdata/avocado/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nThe {avocado} package provides a summary of weekly Hass avocado sales for the contiguous United States. The underlying data are from [The Hass Avocado Board](https://hassavocadoboard.com) (free registration required). Hass Avocados are the most popular variety of avocados sold in the United States and the Haas Avocado Board (HAB) provides crucial data on them to growers and marketers.\n\nThe HAB makes this information available to anyone who may be interested (free registration required). An important note to remember is that the term 'units' typically refers to 1 avocado. It does not refer to avocados in terms of weight, bags, etc. The HAB does not provide (at least publicly) actual piece-count sales to retailers or consumers.\n\n## About the PLUs\nThe {avocadoo} package consists of 3 primary [PLUs](https://en.wikipedia.org/wiki/Price_look-up_code):\n\n* 4046: non-organic small/medium Hass Avocados (~3-5 oz); also known as Hass #60 size or smaller\n* 4225: non-organic large Hass Avocados (~8-10 oz); also known as Hass #40 size and Hass #48 size\n* 4770: non-organic extra large Hass Avocados (~10-15 oz); also known as Hass #36 size or larger\n\nOrganic avocados have the digit 9 prefixed to the non-organic PLUs:\n\n* 94046: organic small/medium Hass Avocados (~3-5 oz)\n* 94225: organic large Hass Avocados (~8-10 oz)\n* 94770: organic extra large Hass Avocados (~10-15 oz)\n\nSource: [Love One Today](https://loveonetoday.com/how-to/identify-hass-avocados/)\n\n## Bags vs PLU\n\nHAB also tracks avocado sales in bags of varying sizes. Since 2021, HAB does not break down units of avocados sold by bag size (e.g., small, large, extra large). Bags can consist of multiple avocados and can weights of bags can vary.\n\nSee this [vignette](https://nikdata.github.io/avocado/articles/a_intro.html) for more information.\n\n## Installation\n\nInstall the development version from [GitHub](https://github.com/):\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"nikdata/avocado\", ref = 'main')\n```\n\n## Datasets\n\nThe {avocado} package consists of three different datasets:\n\n- `hass_usa`: weekly contiguous US avocado sales at the country level\n- `hass_region`: weekly contiguous US avocado sales at the region level\n- `hass_market`: weekly contiguous US avocado sales at the city/sub-region (i.e., market) level\n\n### Example\n\nThe `hass_market` dataset provides a weekly sales summary of Hass Avocado sales in the contiguous US (subdivided by region and select cites/sub-regions within each 'parent' region):\n\n```{r}\nlibrary(avocado)\ndplyr::glimpse(hass_market)\n```\n\n## Use Cases\n\nSome potential use cases include:\n\n- Determining peak sale periods for each market\n- Determining which PLU is most popular in some major cities (e.g., Chicago, Los Angeles, etc.)\n- Differences between organic and non-organic Hass Avocados\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikdata%2Favocado","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikdata%2Favocado","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikdata%2Favocado/lists"}