get_alcohol: Computation of pure alcohol

Description Usage Arguments Value Author(s) References Examples

View source: R/promillo-withdoc.R

Description

Takes a list of alcoholic drinks and computes the cummulated mass of pure alcohol

Usage

1
get_alcohol(drinks)

Arguments

drinks

named numeric vector. Names of the vector represent the consumed type of drink, the numbers represent the consumed quantitiy of the corresponding drink. Currently the following drinks are supported: "massn", "hoibe", "wein" and "schnaps"

Value

a numeric value representing the mass of absolute alcohol in gram

Author(s)

Fabian Scheipl, Marc Johler

References

https://web.archive.org/web/20150123143123/http://promille-rechner.org/erlaeuterung-der-promille-berechnung/

Examples

1
2
3
4
## Not run: 
get_alcohol(c("hoibe" = 3, "wein" = 2, "massn" = 1))

## End(Not run)

fort-w2021/promillo-ex-MarcJohler documentation built on Feb. 8, 2021, 6:30 a.m.