Convert and update the date values
Source:R/date_standardization_helpers.R
date_convert_and_update.Rd
Convert and update the date values
Arguments
- data
A data frame or linelist
- timeframe
A vector of 2 values of type date. If provided, date values that do not fall within this timeframe will be set to
NA
.- new_dates
A vector of the converted date values
- cols
The names of the date column been converted
- error_tolerance
A number between 0 and 1 indicating the proportion of entries which cannot be identified as dates to be tolerated; if this proportion is exceeded, the original vector is returned, and a message is issued; defaults to 0.4 (40 percent).