In R: I have a vector and want to find the position of the first value that is greater than 100.
Check out which.max:
which.max
x <- seq(1, 150, 3) which.max(x > 100) # [1] 35 x[35] # [1] 103