| std_dates | R Documentation |
std_dates standardizes a date vector and returns a vector in Date or
POSIXct format, depending on whether there is sub-daily information
available in the data.
std_dates(
x,
force = c("none", "dt", "dttm"),
train = TRUE,
orders = c("mdy", "dmy", "ymd", "mdyT", "dmyT", "ymdT", "mdyR", "dmyR", "ymdR",
"mdyr", "dmyr", "ymdr", "mdyTz", "dmyTz", "ymdTz", "Tmdyz", "Tdmyz", "Tymdz",
"mdyRz", "dmyRz", "ymdRz", "mdyrz", "dmyrz", "ymdrz", "Tmdy", "Tdmy", "Tymd",
"Tmdyz", "Tdmyz", "Tymdz"),
...
)
x |
A vector of character dates |
force |
Whether to force conversion to |
train |
logical, default |
orders |
The orders to use when parsing character vector with
|
... |
Additional arguments to pass to
|
A Date or POSIXct vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.