Return index of maximal/minimal/best element in numerical vector.
If x is empty or only contains NAs which are to be removed,
-1 is returned.
getMaxIndex(x, ties.method = "random", na.rm = FALSE) getMinIndex(x, ties.method = "random", na.rm = FALSE) getBestIndex(x, minimize = TRUE, ...)
x |
[ |
ties.method |
[ |
na.rm |
[ |
minimize |
[ |
... |
[any] |
[integer(1)].
Function getBestIndex is a simple wrapper for getMinIndex or
getMaxIndex respectively depending on the argument minimize.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.