powered by
Check for patients with missing AGE, AGE<18 or AGE>90 in DM
check_dm_age_missing(DM)
boolean value if check failed or passed with 'msg' attribute if the test failed
Demographics SDTM dataset with variables USUBJID,AGE
Nina Qi
DM <- data.frame( USUBJID = 1:10, AGE = c(50,60,17,99,NA,33,500,40,22,NA) ) check_dm_age_missing(DM) DM$AGE = NULL check_dm_age_missing(DM)
Run the code above in your browser using DataLab