date_trim_outliers {cleanepi} | R Documentation |
Trim dates outside of the defined boundaries
Description
Trim dates outside of the defined boundaries
Usage
date_trim_outliers(new_dates, dmin, dmax, cols, original_dates)
Arguments
new_dates |
A vector of the new date values |
dmin |
A minimum date |
dmax |
A maximum date |
cols |
The name of the date column of interest |
original_dates |
A vector of the original date values |
Value
A list of 2 elements: the update input vector where date values that
are out of the boundaries are replaced by NA
, and a vector of the out of
boundaries values.
[Package cleanepi version 1.0.2 Index]