View source: R/get_crash_times.R
convert_to_datetime | R Documentation |
Adds a column of datetime using date and crsh time (formatted via convert_time_to_hms())
convert_to_datetime(
dataframe,
colname = "crsh_datetime",
date_col = "CRSHDATE",
time_hour_col = "crsh_time",
include_min = TRUE
)
dataframe |
a dataframe |
colname |
new column name |
date_col |
date column in ymd |
time_hour_col |
time column in hm or hms. May have to use format_time() function. |
include_min |
if time_hour_col has minutes |
A new column called crsh_datetime with POSIXt class
## Not run: convert_to_datetime(crash, colname = "crsh_datetime")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.