Skip to contents

Test whether an eBAC exceeds a legal driving limit

Usage

morie_is_over_legal_limit(ebac, limit = 0.08)

Arguments

ebac

Numeric eBAC value (e.g. from morie_calculate_ebac()).

limit

Legal threshold (default 0.08, the per-se limit in most Canadian and US jurisdictions).

Value

Integer 1 if ebac >= limit, 0 otherwise. (Integer, not logical, to match the Python sibling and ease binary-outcome modelling.)

Examples

morie_is_over_legal_limit(0.09)
#> [1] 1
morie_is_over_legal_limit(0.05, limit = 0.05)
#> [1] 1