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)
numeric
]
Input vector.character(1)
]
How should ties be handled?
Possible are: random, first, last.
Default is random.logical(1)
]
If FALSE
, NA is returned if an NA is encountered in x
.
If TRUE
, NAs are disregarded.
Default is FALSE
integer(1)
].