Checks if a vector contains any duplicated values. Unlike duplicated(), it returns TRUE for all values that appear more than once. duplicated() returns TRUE only for the 2nd element. [Stable]

all_duplicates(x)

Arguments

x

Input vector

Value

boolean vector of length length(x).