Returns the index of the maximum value in vector vec
.
which_max_tied(x, equal_is_random = TRUE)
x | vector of values |
---|---|
equal_is_random | boolean |
If there is a tie, and equal_is_random is TRUE, the index of one of the tied maxima is returned at random. Otherwise, the value with the lowest index is returned.