dt_combine | R Documentation |
This function will combine POSIXct date and time values pulled from an excel using contin_import
to make a POSIXct datetime.
There are various options on how to handle the time and timezone column. If the datetime falls in a daylight savings break NA is returned.
dt_combine(
df,
date_col = "Activity.Start.Date",
time_col = "Activity.Start.Time",
time_val = NULL,
tz_col = "Activity.Start.End.Time.Zone"
)
df |
Data frame to be evaluated. |
date_col |
Column name in df holding the POSIXct date values. Default is "Activity.Start.Date" |
time_col |
Column name in df holding the POSIXct time values. Default is "Activity.Start.Time". If NULL uses date_col or time_val if provided. |
time_val |
string in format 'hh:mm:ss' representing the time to use for all rows. Default is NULL. If NULL uses date_col or time_col if provided. |
tz_col |
Column name in df holding the timezone string values. Acceptable values
include "PST", "PDT", "MST", "MDT" or Olson Names such as 'America/Los_Angeles' for Pacific Time
zone or 'America/Boise' for Mountain time zone.
See |
vector of POSIXct datetime
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.