Given a vector of dates or date-times, create Date or POSIXct variables.
Usage
parse_dates(x, tz = getOption("pkdata.tz", ""))
Arguments
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.
Value
vector of Date or POSIXct objects
Details
parse_dates calls parse_date_time from the
lubridate package. While parse_date_time accepts
multiple date formats, parse_dates requires a consistent format.