MyNixOS website logo
Description

US Beer Statistics from TTB.

U.S. Department of the Treasury, Alcohol and Tobacco Tax and Trade Bureau (TTB) collects data and reports on monthly beer industry production and operations. This data package includes a collection of 10 years (2006 - 2015) worth of data on materials used at U.S. breweries in pounds reported by the Brewer's Report of Operations and the Quarterly Brewer's Report of Operations forms, ready for data analysis. This package also includes historical tax rates on distilled spirits, wine, beer, champagne, and tobacco products as individual data sets.

ttbbeer

An R data package of beer statistics from U.S. Department of the Treasury, Alcohol and Tobacco Tax and Trade Bureau (TTB)

This package provides the one data set for materials used at U.S. breweries as listed in the Beer Monthly Statistical Releases, and eight data sets for historical tax rates of distilled spirits, wine, beer, champagne, and tobacco.

The motivation behind this package was to provide analysis-ready data sets as the original data for the beermaterials is in PDF format which can be difficult to read into R, given the small ecosystem of PDF parsing R packages such as: tm, and tabulizer. Other goals of this package are to provide more data sets to the R ecosystem for beer analytics from open government data portals.

How to install this package?

To install the package type the following:

install.packages("ttbbeer")
library("ttbbeer")

Or you can install the development version from Github:

library(devtools)
install_github("jasdumas/ttbbeer")
library(ttbbeer)

How to use this package?

The components of the package are a data set called beermaterials which includes the materials used by U.S. breweries during beer production as reported on a monthly basis to the U.S. Department of the Treasury, Alcohol and Tobacco Tax and Trade Bureau (TTB) from 2006 to 2015. The other components of this package include eight data sets depicting the historical tax rate of distilled spirits, wine, beer, champagne, and tobacco.

Several different types of data analysis projects can be conducted by using this data such as: Exploratory Data Analysis, and Time Series Analysis. The intended audience of this data is everyone but especially for those interested in open government data or beer analytics.

data("beermaterials")
data("artificialcarbontax")
data("champagnetax")
data("spirittax")
data("winetax14")
data("winetax1421")
data("winetax2124")
data("beertax")
data("tobaccotax")

This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Contact

Package Author: Jasmine Dumas @jasdumas | jasdumas.github.io | Package Wiki.

Metadata

Version

1.1.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows