View source: R/loadDataADaMSDTM.R
convertToDateTime | R Documentation |
Convert character vector to date/time object
convertToDateTime(
x,
format = c("%Y-%m-%dT%H:%M", "%Y-%m-%d"),
colName = NULL,
verbose = TRUE
)
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 |
Vector of class POSIXct
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.