From e46f08100b52823c2d9d10c3a84a67b41b7f5b59 Mon Sep 17 00:00:00 2001 From: Dan Chaltiel <15105152+DanChaltiel@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:49:50 +0200 Subject: [PATCH] doc --- NAMESPACE | 1 + man/assert_no_duplicate.Rd | 4 ++-- man/get_common_cols.Rd | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 0f6901b..5b9b3b1 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -20,6 +20,7 @@ export(get_common_cols) export(get_datasets) export(get_key_cols) export(get_lookup) +export(get_subjid_cols) export(get_yesno_lvl) export(load_as_list) export(load_list) diff --git a/man/assert_no_duplicate.Rd b/man/assert_no_duplicate.Rd index 44008e3..3152835 100644 --- a/man/assert_no_duplicate.Rd +++ b/man/assert_no_duplicate.Rd @@ -4,7 +4,7 @@ \alias{assert_no_duplicate} \title{Assert that a dataset has one row per patient} \usage{ -assert_no_duplicate(df, id_col = get_key_cols()) +assert_no_duplicate(df, by = NULL, id_col = get_subjid_cols()) } \arguments{ \item{df}{the dataset} @@ -23,5 +23,5 @@ Mostly useful after joining two datasets. tibble(subjid=c(1:10)) \%>\% assert_no_duplicate() \%>\% nrow() #with duplicate => throws an error -#tibble(subjid=c(1:10, 1:2)) \%>\% assert_no_duplicate() \%>\% nrow() +tibble(subjid=c(1:10, 1:2)) \%>\% assert_no_duplicate() \%>\% nrow() } diff --git a/man/get_common_cols.Rd b/man/get_common_cols.Rd index f5774ab..4691ec0 100644 --- a/man/get_common_cols.Rd +++ b/man/get_common_cols.Rd @@ -7,7 +7,7 @@ \usage{ get_common_cols(lookup = get_lookup(), min_datasets = 3) -\method{summary}{common_cols}(x) +\method{summary}{common_cols}(object, ...) } \arguments{ \item{lookup}{the lookup table, default to \code{\link[=get_lookup]{get_lookup()}}}