Find second highest value in R. #r
my_vector <- c(99, 87, 22, 105, 13, 64) n <- length(my_vector) sort(my_vector, partial = n - 1)[n-1] # [1] 99