find1stDup: Find first duplicated position

View source: R/fill.R

find1stDupR 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))

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.