This function returns a logical value indicating whether the input vector contains duplicated elements.
Examples
if(interactive()){
has_duplicates(c(1, 2, 3)) # returns FALSE
has_duplicates(c(1, 2, 2)) # returns TRUE
}
This function returns a logical value indicating whether the input vector contains duplicated elements.
if(interactive()){
has_duplicates(c(1, 2, 3)) # returns FALSE
has_duplicates(c(1, 2, 2)) # returns TRUE
}