assert_has_duplicates: Does the input have duplicates?
Description
Checks to see if the input has duplicates.Usage
assert_has_duplicates(x)
assert_has_no_duplicates(x)
has_duplicates(x)
has_no_duplicates(x)
Value
has_duplicates
returns TRUE
ifanyDuplicated
is TRUE
.
assert_has_duplicates
returns nothing but throws
an error if has_duplicates
is not TRUE
.
has_no_duplicates
is the negation of
has_duplicates
.