get_seatbelt_flag_by_unit: Get seatbelt flag (old and new db)

get_seatbelt_flag_by_unitR Documentation

Get seatbelt flag (old and new db)

Description

Finds if a person in a unit was not wearing a seatbelt inside a motor vehicle. For example, a passenger not wearing a seatbelt, every person in that unit would get a seat belt flag. This includes the driver and other passengers, if any. Need SFTYEQP.

Usage

get_seatbelt_flag_by_unit(person_df)

Arguments

person_df

person df

Value

A new column seatbelt_flag ("Y" or "N")

Examples

## Not run: get_seatbelt_flag_by_unit(person17)

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