compute_dtf | R Documentation |
Derive the date imputation flag ('--DTF'
) comparing a date character vector
('--DTC'
) with a Date vector ('--DT'
).
compute_dtf(dtc, dt)
dtc |
The date character vector ( A character date is expected in a format like |
dt |
The Date vector to compare. A date object is expected. |
Usually this computation function can not be used with %>%
.
The date imputation flag ('--DTF'
) (character value of 'D'
, 'M'
, 'Y'
or NA
)
Date/Time Computation Functions that returns a vector:
compute_age_years()
,
compute_duration()
,
compute_tmf()
,
convert_date_to_dtm()
,
convert_dtc_to_dt()
,
convert_dtc_to_dtm()
,
impute_dtc_dt()
,
impute_dtc_dtm()
compute_dtf(dtc = "2019-07", dt = as.Date("2019-07-18"))
compute_dtf(dtc = "2019", dt = as.Date("2019-07-18"))
compute_dtf(dtc = "--06-01T00:00", dt = as.Date("2022-06-01"))
compute_dtf(dtc = "2022-06--T00:00", dt = as.Date("2022-06-01"))
compute_dtf(dtc = "2022---01T00:00", dt = as.Date("2022-06-01"))
compute_dtf(dtc = "2022----T00:00", dt = as.Date("2022-06-01"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.