powered by
This function returns a logical value indicating whether the input vector contains no duplicated elements.
has_no_duplicates(x)
A logical value indicating whether the input vector contains no duplicated elements.
A vector.
if(interactive()){ has_no_duplicates(c(1, 2, 3)) # returns TRUE has_no_duplicates(c(1, 2, 2)) # returns FALSE }
Run the code above in your browser using DataLab