View source: R/check_ds_dsterm_death_due_to.R
check_ds_dsterm_death_due_to | R Documentation |
This check looks for DS.DSTERM values with missing death reason and returns a data frame (e.g. records where DSTERM = 'DEATH DUE TO')
check_ds_dsterm_death_due_to(DS)
DS |
Disposition SDTMv dataset with variables USUBJID, DSTERM, DSDECOD, DSDTC, DSSTDTC |
boolean value if check failed or passed with 'msg' attribute if the test failed
Sara Bodach
DS <- data.frame(
STUDYID = 1,
USUBJID = 1:4,
DSTERM = c("DEATH DUE TO",
"DEATH DUE TO ",
"DEATH DUE TO ADVERSE EVENT",
"DEATH DUE TO UNKNOWN"),
DSDECOD = "DEATH",
DSDTC = "2017-01-01",
DSSTDTC = "2017-01-01",
stringsAsFactors=FALSE
)
check_ds_dsterm_death_due_to(DS)
DS$DSDECOD <- NULL
check_ds_dsterm_death_due_to(DS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.