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