View source: R/helper_functions.R
persons_flags_to_crash | R Documentation |
Get a df of crash numbers with crash flags at the crash level. This df can full_join with a crash df. (df = full_join(crash, df, by = "CRSHNMBR"))
persons_flags_to_crash(persons_df, flag_list = c("speed_flag"))
persons_df |
person dataframe |
flag_list |
list of flags c("speed_flag", "distracted_flag", "teendriver_flag", "olderdriver_flag", "impaired_flag", "seatbelt_flag") |
df with crash numbers and crash flags
## Not run: persons_flags_to_crash(p, flag_list = c("impaired_flag"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.