Description Usage Arguments Value Note Examples
View source: R/dailyLogicChecks.R
This function displays the duplicate surveys, given a unique identifier
(which could be a single variable, or a combination of variables). In
case, its a combination of variables (that uniquely identifies the
underlying dataset in df
), then this function will show
duplicate surveys for that joint (combination) unique identifier variable.
1 | display_duplicates(df, uniq_identifier_col)
|
df |
dataset( |
uniq_identifier_col |
a character vector of column name(s) that uniquely
identifies the dataset. In here, |
a tibble that displays the duplicates for the given unique identifiers
in uniq_identifier_col
.
If for example, surveyor_id
is the unique identifier col,
and after running display_duplicates
function, we find
that, there are 5 rows with surveyor_id
= 122. Now,
the output tibble from this function should be interpreted
as follows: 4 of 5 of the surveyor_id
= 122 are duplicates,
1 of 5 is original.
1 2 3 4 5 6 | count_duplicates(df = dataObj, uniq_identifier_col = c("ID"))
count_duplicates(df = dataObj, uniq_identifier_col = c("ID", "Name"))
count_duplicates(df = dataObj, uniq_identifier_col =
tidyselect::contains("abc")) # tidyselection used to select columns.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.