check_subjid {EDCimport}R Documentation

Check the completion of the subject ID column

Description

Compare a subject ID vector to the study's reference subject ID (usually something like enrolres$subjid).

Usage

check_subjid(x, ref = getOption("edc_subjid_ref"))

Arguments

x

the subject ID column to check

ref

the reference for subject ID. Should usually be set through options(edc_subjid_ref=xxx). See example.

Value

nothing, called for warnings

Examples

tm = edc_example()
load_list(tm)
options(edc_subjid_ref=db0$SUBJID)
#usually, you set something like:
#options(edc_subjid_ref=enrolres$subjid)
check_subjid(db1$SUBJID)
check_subjid(db1$SUBJID %>% setdiff(2))
check_subjid(c(db1$SUBJID, 99))

[Package EDCimport version 0.4.1 Index]