date_guess_convert {cleanepi} | R Documentation |
Guess if a character vector contains Date values, and convert them to date
Description
Guess if a character vector contains Date values, and convert them to date
Usage
date_guess_convert(data, error_tolerance, timeframe, orders)
Arguments
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") ) |
Value
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.