powered by
Find duplicated term
findDup(x)
A logical vector
A vector
x=rep(1:5,each=3) findDup(x) x=c(6,x) findDup(x) which(!findDup(x))
Run the code above in your browser using DataLab