check_dm_armcd {sdtmchecks}R Documentation

Check for missing ARM or ARMCD values in DM

Description

This check looks for missing ARM or ARMCD values

Usage

check_dm_armcd(DM)

Arguments

DM

Demographics SDTM dataset with variables USUBJID, ARM, ARMCD

Value

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

Author(s)

Rena Wang

Examples


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)



[Package sdtmchecks version 1.0.0 Index]