date_time_ {ThomasJeffersonUniv} | R Documentation |
Concatenate Date and Time
Description
Concatenate date and time information from two objects.
Usage
date_time_(date_, time_)
Arguments
date_ |
an R object containing Date information |
time_ |
an R object containing time (POSIXt) information |
Details
Function date_time_ is useful as clinicians may put date and time in different columns.
Value
Function date_time_ returns a POSIXct object.
Examples
(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)
[Package ThomasJeffersonUniv version 0.1.3 Index]