powered by
At which point are all values true onwards
which_true_onwards(x)
The position of the first TRUE value in x at which all the following values are TRUE.
TRUE
x
A logical vector. NA values are not permitted.
NA
which_true_onwards(c(TRUE, FALSE, TRUE, TRUE, TRUE))
Run the code above in your browser using DataLab