Description Usage Arguments Value Author(s) Examples
View source: R/derive_date_vars.R
Derive the time imputation flag ('--TMF'
) comparing a date character vector
('--DTC'
) with a Datetime vector ('--DTM'
).
1 | compute_tmf(dtc, dtm, ignore_seconds_flag = FALSE)
|
dtc |
The date character vector ( A character date is expected in a format like |
dtm |
The Date vector to compare ( A datetime object is expected. |
ignore_seconds_flag |
ADaM IG states that given SDTM ( A logical value Default: |
The time imputation flag ('--TMF'
) (character value of 'H'
, 'M'
, 'S'
or NA
)
Samia Kabi
1 2 3 | compute_tmf(dtc = "2019-07-18T15:25", dtm = as.POSIXct("2019-07-18T15:25:00"))
compute_tmf(dtc = "2019-07-18T15", dtm = as.POSIXct("2019-07-18T15:25:00"))
compute_tmf(dtc = "2019-07-18", dtm = as.POSIXct("2019-07-18"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.