which_true_onwards: At which point are all values true onwards

View source: R/which_true_onwards.R

which_true_onwardsR Documentation

At which point are all values true onwards

Description

At which point are all values true onwards

Usage

which_true_onwards(x)

Arguments

x

A logical vector. NA values are not permitted.

Value

The position of the first TRUE value in x at which all the following values are TRUE.

Examples

which_true_onwards(c(TRUE, FALSE, TRUE, TRUE, TRUE))


hutilscpp documentation built on April 4, 2025, 12:42 a.m.