powered by
This function returns a vector of the duplicated values in the input vector.
util_get_duplicated_values(x)
A vector of the duplicated values in the input vector.
A vector.
if(interactive()) { util_get_duplicated_values(c(1, 2, 2)) # returns 2 util_get_duplicated_values(c(1, 2, 3)) # returns NULL }
Run the code above in your browser using DataLab