View source: R/findDateFormat.r
findDateFormat | R Documentation |
findDateFormat
determines the date format of a given vector of dates
findDateFormat(dateVec)
dateVec |
a character vector representing dates |
dateformat is character string used as input to strptime(format = dateformat)
dte <- '2015-01-01 05:30:17'
findDateFormat(dte)
dte.POSIX <- as.POSIXct(dte, format = findDateFormat(dte))
dte.POSIX
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.