Description Usage Arguments Value Author(s)
which.minN
: Get the indices of the N smallest values in x
minN
: Get the N smallest values from x
which.maxN
: Get the indices of the N largest values in x
maxN
: Get the N largest values from x
1 2 3 4 5 6 7 |
x |
a vector of numbers |
N |
how many values are to be returned |
return.ties |
logical: if there are multiple Nth smallest values, return all the indices? |
sort |
if |
which.minN
: the indices of the N
smallest values in x
. possibly more than N
if
return.ties=TRUE
and the N
th smallest value appears more than once.
minN
: return the N smallest values from x
(possibly sorted), possibly
more than N if return.ties=TRUE and the Nth smallest value appears more than
once.
which.maxN
: return the indices of the N largest values in x. possibly more than
N if return.ties=TRUE and the Nth largest value appears more than once.
maxN
: return the N largest values from x (possibly sorted), possibly more
than N if return.ties=TRUE and the Nth largest value appears more than once.
Mark Cowley, 24 May 2005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.