In R: I have a vector and want to find the position of the first value that is greater than 100.
There are many solutions, another is:
x <- 90:110 which(x > 100)[1]