get_alc_drug_impaired_person: Get flag for a suspected alcohol or drug person (old and new...

get_alc_drug_impaired_personR Documentation

Get flag for a suspected alcohol or drug person (old and new db). Deprecated.

Description

This looks to see if a person was suspected of alcohol or drug use.

Usage

get_alc_drug_impaired_person(
  person_df,
  driver_only = "N",
  include_alc = "Y",
  include_drug = "Y"
)

Arguments

person_df

person df

driver_only

Select for driver flag as driver only ("Y" or"N")

include_alc

Select to include suspected alcohol ("Y" or"N")

include_drug

Select to include suspected drug ("Y" or"N")

Value

A new column called drug_flag or alcohol_flag. Values are "Y","N", and "U" for unknowm. If driver_only = "Y", then only drivers will return.

Examples

## Not run: get_alc_drug_impaired_person(person17, include_alc = "N")

jacciz/wisdotcrashdatabase documentation built on June 3, 2023, 2:26 a.m.