In R: I have a vector and want to find the position of the first value that is greater than 100.
# Randomly generate a suitable vector set.seed(0) v <- sample(50:150, size = 50, replace = TRUE) min(which(v > 100))
2.1m questions
2.1m answers
60 comments
57.0k users