compute_dtf: Derive the Date Imputation Flag

Description Usage Arguments Value Author(s) Examples

View source: R/derive_date_vars.R

Description

Derive the date imputation flag ('--DTF') comparing a date character vector ('--DTC') with a Date vector ('--DT').

Usage

1

Arguments

dtc

The date character vector ('--DTC').

A character date is expected in a format like yyyy-mm-ddThh:mm:ss (partial or complete).

dt

The Date vector to compare.

A date object is expected.

Value

The date imputation flag ('--DTF') (character value of 'D', 'M' , 'Y' or NA)

Author(s)

Samia Kabi

Examples

1
2
compute_dtf(dtc = "2019-07", dt = as.Date("2019-07-18"))
compute_dtf(dtc = "2019", dt = as.Date("2019-07-18"))

epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.