getMaxIndex | R Documentation |
If x
is empty or only contains NAs which are to be removed,
-1 is returned.
getMaxIndex(x, weights = NULL, ties.method = "random", na.rm = FALSE) getMinIndex(x, weights = NULL, ties.method = "random", na.rm = FALSE) getBestIndex(x, weights = NULL, minimize = TRUE, ...)
x |
[ |
weights |
[ |
ties.method |
[ |
na.rm |
[ |
minimize |
[ |
... |
[any] |
[integer(1)
].
Function getBestIndex
is a simple wrapper for getMinIndex
or
getMaxIndex
respectively depending on the argument minimize
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.