find1stDup {autoReg}R Documentation

Find first duplicated position

Description

Find first duplicated position

Usage

find1stDup(x)

Arguments

x

a vector

Value

A logical vector

Examples

x=rep(1:5,each=3)
which(find1stDup(x))

[Package autoReg version 0.3.3 Index]