Skip to contents

Get the first TRUE consecutive element from reference point

Usage

first_true_element(x, i)

Arguments

x

Vector with logical values.

i

Reference point

Value

Numeric value with the index for the first TRUE consecutive element