Determines the locations, i.e., indices of the n largest or n smallest elements of a numeric vector.
which.maxn(x, n = 1)
integer >= 1
A vector of length at most n with the indices of the n largest / smaller elements. NAs are discared and that can cause the vector to be smaller than n.
Søren Højsgaard, [email protected]
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.