which.min
n <- c (31, 47, 18, 9, 25, 19, 62, 32) pos_min <- which.min(n) print(pos_min) # [1] 4 n[pos_min] # [1] 9
Index