R/fill.R
find1stDup.Rd
Find first duplicated position
find1stDup(x)
a vector
A logical vector
x=rep(1:5,each=3) which(find1stDup(x)) #> [1] 1 4 7 10 13