avocado

CRAN_Status_Badge lifecycle License: MIT GitHub commit R-CMD-check

The {avocado} package provides a summary of weekly Hass avocado sales for the contiguous United States. The underlying data are from The Hass Avocado Board (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.

The HAB makes this information available to anyone who may be interested (free registration required). An important note to remember is that when they use the term ‘units’, it often means the weight in US pounds. The HAB does not provide (at least publicly) actual piece-count sales to retailers.

About the PLUs

The {avocadoo} package consists of 6 different PLUs:

Source: Love One Today

Bags vs PLU

Another distinction that the HAB makes is between bags versus bulk. Bulk typically means avocados sold as individual pieces and are easily distinguishable with their PLU codes. Hence, the PLU refers to a bulk sale. On the other hand, the bags indicates a pre-packaged container consisting of a variable number of avocados of mixed PLU type. For instance, a package of six avocados may consist of 2 PLU 4046, 3 PLU 4770 and 1 PLU 4225. In other words, bagged sales are unable to account for individual PLU sales.

See this vignette for more information.

Installation

Install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("nikdata/avocado", ref = 'main')

Datasets

The {avocado} package consists of three different datasets: