check_dm_age_missing {sdtmchecks} | R Documentation |
Check for patients with suspicious age values
Description
Check for patients with missing AGE, AGE<18 or AGE>90 in DM
Usage
check_dm_age_missing(DM)
Arguments
DM |
Demographics SDTM dataset with variables USUBJID,AGE |
Value
boolean value if check failed or passed with 'msg' attribute if the test failed
Author(s)
Nina Qi
Examples
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)
[Package sdtmchecks version 1.0.0 Index]