I am looking for a condition which will return the index of a vector satisfying a condition.
I have a vector
b = c(0.1, 0.2, 0.7, 0.9)
which.min(subset(b, b > 0.65))
which and take the first element of the result:
which(b > 0.65) # 3