get_imputation_target_date {admiral}R Documentation

Get Date Imputation Targets

Description

Get Date Imputation Targets

Usage

get_imputation_target_date(date_imputation, month)

Arguments

date_imputation

The value to impute the day/month when a datepart is missing.

A character value is expected, either as a

  • format with month and day specified as "mm-dd": e.g. "06-15" for the 15th of June,

  • or as a keyword: "first", "mid", "last" to impute to the first/mid/last day/month.

month

Month component of the partial date

Details

"xxxx" indicates that the component is undefined. If an undefined component occurs in the imputed DTC value, the imputed DTC value is set to NA_character_ in the imputation functions.

Value

A list of character vectors. The elements of the list are named "year", "month", "day".

Author(s)

Stefan Bundfuss

See Also

impute_dtc_dtm(), impute_dtc_dt()

Utilities used for date imputation: dt_level(), dtm_level(), get_imputation_target_time(), get_partialdatetime(), restrict_imputed_dtc_dtm(), restrict_imputed_dtc_dt()


[Package admiral version 0.8.4 Index]