find.first: Find the location of first TRUE value in a boolean vector

View source: R/auxiliary.R

find.firstR Documentation

Find the location of first TRUE value in a boolean vector

Description

Find the location of first TRUE value in a boolean vector

Usage

find.first(v)

Arguments

v

a logical vector

Value

an integer denotating the location, return NA if not found.


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.