powered by
This check looks missing EX.VISIT values when EX.EXOCCUR=Y (or EX.EXOCCUR doesn't exist)
check_ex_visit(EX)
boolean value if check failed or passed with 'msg' attribute if the test failed
Exposure SDTM dataset with variables USUBJID,EXTRT,EXSTDTC,VISIT, and optional variable EXOCCUR
Jen Chen
EX <- data.frame( USUBJID = 1:3, EXTRT = 1:3, EXSTDTC = 1:3, EXOCCUR = "Y", VISIT = NA ) check_ex_visit(EX) EX$EXOCCUR=NULL check_ex_visit(EX) EX$VISIT=NULL check_ex_visit(EX)#
Run the code above in your browser using DataLab