get_permille: Low-level function to compute blood-alcohol-level

Description Usage Arguments Value Author(s) References Examples

View source: R/promillo-withdoc.R

Description

Computes the "alcohol per mille" value based on consumed alcohol, total body water and passed time since start of drinking

Usage

1
get_permille(alcohol_drunk, bodywater, drinking_time)

Arguments

alcohol_drunk

mass of consumed alcohol in gram

bodywater

quantity of individuals body water in liters

drinking_time

two element POSIXct-vector with the first element being the start time of drinking and the second element being the end time of drinking

Value

a numeric value representing the blood-alcohol-level in per mille

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
5
6
7
8
## Not run: 
get_permille(
  alcohol_drunk = 48,
  bodywater = 42,
  drinking_time = as.POSIXct(c("2016-10-03 17:15:00", "2016-10-03 22:55:00"))
)

## End(Not run)

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