Description Usage Arguments Value Note Author(s) Examples
Takes "n" values from the head or tail of a sorted vector. Utilizes the
"partial" argument from sort
for increased efficiency.
1 | sortEnds(invec, n, where = "head")
|
invec |
The input vector |
n |
The number of values desired |
where |
Either |
A sorted vector of length = n
The "tail"
approach may not be consideraby faster than
the standard approach.
Ananda Mahto
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.