View source: R/date_standardization_helpers.R
date_guess_convert | R Documentation |
Guess if a character vector contains Date values, and convert them to date
date_guess_convert(data, error_tolerance, timeframe, orders)
data |
A |
error_tolerance |
A |
timeframe |
A |
orders |
A list( quarter_partial_dates = c("Y", "Ym", "Yq"), world_digit_months = c("Yq", "ymd", "ydm", "dmy", "mdy", "myd", "dym", "Ymd", "Ydm", "dmY", "mdY", "mYd", "dYm"), world_named_months = c("dby", "dyb", "bdy", "byd", "ybd", "ydb", "dbY", "dYb", "bdY", "bYd", "Ybd", "Ydb"), us_format = c("Omdy", "YOmd") ) |
A <list>
with the following two elements: the input data
frame where the character columns with date values have been converted
into <Date>
, and a vector of column names where there are numeric
values that can also be of type Date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.