| check-vector-isDuplicate | R Documentation |
Does the input contain a duplicate value?
isDuplicate(x)
x |
|
This check is designed to serve as a complement to the base duplicated
function, which only returns TRUE after the first observed duplicate value.
Our check here returns TRUE for all values that are duplicated.
TRUE on success;
FALSE on failure, with cause set.
isDuplicate(): Vectorized.
Updated 2023-09-29.
## TRUE ====
x <- c("a", "a", "b", "b", "c", "d")
isDuplicate(x)
duplicated(x)
## FALSE ====
isDuplicate(c("a", "b", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.