Description Usage Arguments Value Author(s) References Examples
View source: R/promillo-withdoc.R
Takes a list of alcoholic drinks and computes the cummulated mass of pure alcohol
1 | get_alcohol(drinks)
|
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" |
a numeric value representing the mass of absolute alcohol in gram
Fabian Scheipl, Marc Johler
https://web.archive.org/web/20150123143123/http://promille-rechner.org/erlaeuterung-der-promille-berechnung/
1 2 3 4 | ## Not run:
get_alcohol(c("hoibe" = 3, "wein" = 2, "massn" = 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.