View source: R/check_cm_missing_month.R
check_cm_missing_month | R Documentation |
Check for missing month when conmed start (CMSTDTC) or end dates (CMENDTC) have known year and day
check_cm_missing_month(CM, preproc = identity, ...)
CM |
Concomitant Medications SDTM dataset with variables USUBJID, CMTRT, CMSTDTC, CMENDTC |
preproc |
An optional company specific preprocessing script |
... |
Other arguments passed to methods |
boolean value if check failed or passed with 'msg' attribute if the test failed
Chandra Mannem
CM <- data.frame(
USUBJID = 1:3,
CMTRT = c("CM1","CM2","CM3"),
CMSTDTC = c("2017-01-01","2017---01","2017-01-02"),
CMENDTC = c("2017-02-01","2017-03-01","2017---01"),
CMSPID = "/F:XXX-D:12345-R:123",
stringsAsFactors=FALSE
)
check_cm_missing_month(CM)
check_cm_missing_month(CM,preproc=roche_derive_rave_row)
CM$CMSTDTC = NULL
check_cm_missing_month(CM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.