Description Usage Arguments Value Examples
If all elements are the same or if there is more than one max element, max element is chosen randomly. At the moment it cannot deal with NA's, an error will be issued.
1 | idxMax(x, tol = 1e-16)
|
x |
A numeric vector. |
tol |
A scalar, small value, required to test the equality of real numbers. |
An integer denoting the position of a max element in vector x
.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.