Learn R Programming

sdtmchecks (version 1.0.0)

check_dm_armcd: Check for missing ARM or ARMCD values in DM

Description

This check looks for missing ARM or ARMCD values

Usage

check_dm_armcd(DM)

Value

boolean value if check failed or passed with 'msg' attribute if the test failed

Arguments

DM

Demographics SDTM dataset with variables USUBJID, ARM, ARMCD

Author

Rena Wang

Examples

Run this code

DM <- data.frame(
 USUBJID = 1:3,
 ARM = 1:3,
 ARMCD = 1:3
)

check_dm_armcd(DM)

DM$ARMCD[1] <- NA
check_dm_armcd(DM)

DM$ARM[2] <- NA
check_dm_armcd(DM)

DM$ARMCD <- NULL
check_dm_armcd(DM)


Run the code above in your browser using DataLab