Description Usage Arguments Value Examples
A function to format dates and times stored in separate columns
1 2 | date_helper(date, time, tz = NULL, date_format = "%m/%d/%Y",
time_format = "%H:%M")
|
date |
A character representation of the date |
time |
A character representation of the time |
tz |
The time zone with which the data was collected |
date_format |
An character string reflecting the storage format of the dates, to view options see ?base::strptime |
time_format |
An character string reflecting the storage format of the time, to view options see ?base::strptime |
A vector of class POSIXct
1 2 3 4 5 6 | tst <- tibble::tibble(
Date = "10/01/2017",
Time = "11:33"
)
tst <- date_helper(tst$Date, tst$Time, tz = "UTC")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.