.duplicatedInt does same as duplicated in R, but only on integers, and faster. It uses Rcpp sugar

duplicatedInt(x)

Arguments

x

Integer Vector

Value

A logical vector, as per duplicated