check-scalar-hasDuplicates | R Documentation |
Does the input have duplicates?
hasDuplicates(x)
hasNoDuplicates(x)
x |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2023-01-12.
assertive.properties::has_duplicates()
.
assertive.properties::has_no_duplicates()
.
## TRUE ====
hasDuplicates(c("a", "a"))
hasNoDuplicates(c("a", "b"))
## FALSE ====
hasDuplicates(c("a", "b"))
hasNoDuplicates(c("a", "a", "b", "b"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.