convertToDateTime {clinUtils} | R Documentation |
Convert character vector to date/time object
Description
Convert character vector to date/time object
Usage
convertToDateTime(
x,
format = c("%Y-%m-%dT%H:%M", "%Y-%m-%d"),
colName = NULL,
verbose = TRUE
)
Arguments
x |
character vector to convert to date/time |
format |
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 |
colName |
string with name of column, used in message (if any). |
verbose |
logical, if TRUE (by default) progress messages are printed during execution |
Value
Vector of class POSIXct
Author(s)
Laure Cougnaud
[Package clinUtils version 0.2.0 Index]