Skip to contents

Get the last TRUE consecutive element from reference point

Usage

last_true_element(x, i)

Arguments

x

Vector with logical values.

i

Reference point

Value

Numeric value with the index for the last TRUE consecutive element