View source: R/check_vs_height.R
check_vs_height | R Documentation |
This check looks for both records where height is missing as well as DM patients with no height records at all
check_vs_height(VS, DM)
VS |
Vital Signs SDTM dataset with variables USUBJID,VSTEST,VSTESTCD,VSSTRESN,VISIT |
DM |
Demographics SDTM dataset with variable USUBJID |
boolean value if check failed or passed with 'msg' attribute if the test failed
Sara Bodach
DM <- data.frame(
STUDYID = 1,
USUBJID = 1:10
)
VS <- data.frame(
STUDYID = 1,
USUBJID = 1:10,
VSTEST = "HEIGHT",
VSTESTCD = "HEIGHT",
VSSTRESN = 1:10,
VISIT = 1:10
)
check_vs_height(VS,DM)
DM <- data.frame(
STUDYID = 1,
USUBJID = 1:11
)
VS$VSSTRESN[1] = NA
VS$VSSTRESN[2] = "NA"
VS$VSSTRESN[3] = ""
VS$VSSTRESN[4] = "."
check_vs_height(VS,DM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.