Convert character vector to date/time object
convertToDateTime(
x,
format = c("%Y-%m-%dT%H:%M", "%Y-%m-%d"),
colName = NULL,
verbose = TRUE
)
Vector of class POSIXct
character vector to convert to date/time
string with possible format(s) of the input date/time in the ADaM dataset.
If multiple are specified, each format is tested successively, until at least one
element in the input vector is converted with the specified format
(non missing, following the approach described in
the format
parameter of the strptime
function).
See the 'Details' section of the help of the function,
for more information about this format.
string with name of column, used in message (if any).
logical, if TRUE (by default) progress messages are printed during execution
Laure Cougnaud