powered by
Concatenate date and time information from two objects.
date_time_(date_, time_)
Function date_time_ returns a POSIXct object.
an R object containing Date information
an R object containing time (POSIXt) information
Function date_time_ is useful as clinicians may put date and time in different columns.
(today = Sys.Date()) (y = ISOdatetime(year = c(1899, 2010), month = c(12, 3), day = c(31, 22), hour = c(15, 3), min = 2, sec = 1, tz = 'UTC')) date_time_(today, y)
Run the code above in your browser using DataLab