data_frame_uniqueness_test | R Documentation |
Useful checking that duplicates of primary keys don't exist
data_frame_uniqueness_test(d, keys, display_count = 10L)
data_frame_uniqueness_assert(d, keys, display_count = 10L)
d |
A |
keys |
A |
display_count |
Maximum number of uniqueness violations to display. |
A logical
value indicating if uniqueness is satisfied.
If FALSE
, the top rows are printed to the console.
Will Beasley
data_frame_uniqueness_test(mtcars, c("cyl"))
data_frame_uniqueness_test(mtcars, c("cyl", "vs"))
data_frame_uniqueness_test(mtcars, c("cyl", "hp"))
data_frame_uniqueness_test(mtcars, c("cyl", "hp"), display_count=0)
data_frame_uniqueness_test(mtcars, c("mpg", "wt"))
## Not run:
data_frame_uniqueness_assert(mtcars, c("cyl"))
data_frame_uniqueness_assert(mtcars, c("cyl", "vs"))
data_frame_uniqueness_assert(mtcars, c("mpg", "wt"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.