date_trim_outliers: Trim dates outside of the defined timeframe

View source: R/date_standardization_helpers.R

date_trim_outliersR Documentation

Trim dates outside of the defined timeframe

Description

Trim dates outside of the defined timeframe

Usage

date_trim_outliers(new_dates, dmin, dmax, cols, original_dates)

Arguments

new_dates

A <vector> of the new date values

dmin

A <Date> value with the minimum date

dmax

A <Date> value with the maximum date

cols

A <character> with 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 specified timeframe are replaced by NA, and a vector of the out of timeframe values.


cleanepi documentation built on April 4, 2025, 5:12 a.m.