Learn R Programming

EDCimport (version 0.4.1)

check_subjid: 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"))

Value

nothing, called for warnings

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.

Examples

Run this code
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))

Run the code above in your browser using DataLab