Description Usage Arguments Details Value Author(s) Examples
Given a vector of dates or date-times, create Date or POSIXct variables.
1 | parse_dates(x, tz = getOption("pkdata.tz", ""))
|
x |
character vector of dates or date-times |
tz |
character string; specifies the time zone to be used for the conversion. Defaults to the current time zone. |
parse_dates
calls parse_date_time
from the
lubridate package. While parse_date_time
accepts
multiple date formats, parse_dates
requires a consistent format.
vector of Date or POSIXct objects
Cole Beck
1 2 3 4 | x <- c("2014-01-15", "20140202")
parse_dates(x)
x <- c("2014-01-15 01:51", "20140202 04:35:18")
parse_dates(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.