View source: R/check_ds_duplicate_randomization.R
check_ds_duplicate_randomization | R Documentation |
Checks for duplicate subject IDs (USUBJID) in the DS domain when randomization is indicated
check_ds_duplicate_randomization(DS)
DS |
Disposition SDTM dataset with variables USUBJID, DSDECOD |
boolean value if check failed or passed with 'msg' attribute if the test failed
Madeleine Ma
DS <- data.frame(
USUBJID = c("ID1","ID1","ID2","ID2","ID3","ID3"),
DSDECOD = c("RANDOMIZATION","OTHER THING","RANDOMIZATION",
"OTHER THING","RANDOMIZATION","RANDOMIZATION")
, stringsAsFactors = FALSE
)
check_ds_duplicate_randomization(DS)
DS$DSDECOD <- NULL
check_ds_duplicate_randomization(DS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.