date_trim_outliers: Trim dates outside of the defined boundaries

View source: R/date_standardization_helpers.R

date_trim_outliersR 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.


cleanepi documentation built on June 22, 2024, 9:48 a.m.