get_crash_times: Get crash hour (new db)

View source: R/get_crash_times.R

get_crash_timesR Documentation

Get crash hour (new db)

Description

Adds a new column that gives crash hour. For new db, NA are "Unk."

Usage

get_crash_times(
  dataframe,
  time_column = "CRSHTIME",
  colname = "newtime",
  combine_with_old = FALSE
)

Arguments

dataframe

dataframe

time_column

Time column

colname

name of new column, "newtime"

combine_with_old

combines newtime with old db

Value

A new column called newtime with crash hour. i.e. "12am"

Examples

## Not run: get_crash_times(crash17)

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