View source: R/get_crashflags_crash.R
get_crash_flags | R Documentation |
This adds a column(s) of certain crash flags. Deer and crash location can be for both old and new db. Crash location - old db doesn't include parking lot/private property crashes. Lane departure and winter road is for new db only. Must have c("CRSHTYPE", "ANMLTY") for deer. c("RLTNTRWY", "CRSHLOC", "INTTYPE", "INTDIS") for crash location. c("CRSHTYPE", "MNRCOLL") for lane departure. c("RDCOND") for winter road.
get_crash_flags(crash_df, flags)
crash_df |
crash df |
flags |
c("deer","location","lanedeparture", "winterroad") |
Adds a column of selected flag(s) with deer_flag, lanedep_flag, winterroad_flag. ("Y" or "N"). crash_location with c("parking lot", "private property", "intersection", "non-intersection")
## Not run: get_crash_flags(crash_df, flags = c("deer", "lanedeparture"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.