View source: R/summarize_data.R
are_paired | R Documentation |
...
columns of the df
have a one-to-one relationAim to test cases like:
A table with person_id
and birth_date
: each person_id
must always
have the same birth_date
. Calling are_paired(df, person_id, birth_date)
lets you test that. birth_date
, of course, can be duplicated. Even
person_id
could also be duplicated.
data with region_name
and region_code
are_paired(df, ...)
df |
a data.frame |
... |
unquoted columns of the |
TODO: let's find a better name for this TODO: check better algorithms
logical
are_paired(mtcars)
are_paired(mtcars, mpg, cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.