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 Oct. 11, 2023, 9:06 a.m.