Description Usage Arguments Details Value Author(s)
View source: R/findDateFormat.R
This function identifies the format of a set of dates from a list of allowed formats.
1 | findDateFormat(X, tz = NULL)
|
X |
The date (given as a character string) |
tz |
The time zone |
The allowed formats are: "%m/%d/%Y %H:%M", "%Y/%m/%d %H:%M","%Y-%m-%d %H:%M" and "%m-%d-%Y %H:%M"
It returns the date format, ready to use in the funtion strptime. If the dates have different formats, the function returns "variousFormats". If the format is not one of the allowed ones, it returns "notAllowedformat".
Marina Saez Andreu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.