diff --git a/404.html b/404.html index b27314f..019cfb3 100644 --- a/404.html +++ b/404.html @@ -24,7 +24,7 @@ EDCimport - 0.4.1.9028 + 0.4.1.9029 + + + + + +
+
+
+ +
+

Compare a subject ID vector to the study's reference subject ID (usually something like enrolres$subjid). check_subjid() is the old, deprecated name.

+
+ +
+

Usage

+
assert_no_missing_patient(x, ref = getOption("edc_subjid_ref"))
+
+ +
+

Arguments

+
x
+

the subject ID column to check, or a dataframe which ID column will be guessed

+ + +
ref
+

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

+ +
+
+

Value

+ + +

nothing, called for errors/warnings

+
+ +
+

Examples

+
tm = edc_example()
+#> Warning: Option "edc_lookup" has been overwritten.
+load_list(tm)
+options(edc_subjid_ref=db0$SUBJID)
+#usually, you set something like:
+#options(edc_subjid_ref=enrolres$subjid)
+assert_no_missing_patient(db1)
+db1 %>% dplyr::filter(SUBJID>1) %>% assert_no_missing_patient()
+#> Warning: Missing 1 subject ID in `.`: 1
+assert_no_missing_patient(c(db1$SUBJID, 99, 999))
+#> Warning: Additional 2 subjects ID in `c(db1$SUBJID, 99, 999)`: 99 and 999
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/reference/assert_no_rows.html b/reference/assert_no_rows.html index b9df085..45df5f8 100644 --- a/reference/assert_no_rows.html +++ b/reference/assert_no_rows.html @@ -12,7 +12,7 @@ EDCimport - 0.4.1.9028 + 0.4.1.9029