nth.values | R Documentation |
Returns the Nth highest or lowest values in a vector
nth.values(x, N = 2, smallest = FALSE)
x |
Numeric vector |
N |
Number of (Nth) values returned |
smallest |
(FALSE/TRUE) Return the highest, else smallest values |
This function returns n lowest or highest elements in a vector
Numeric vector of Nth values
Jeffrey S. Evans <jeffrey_evans@tnc.org>
nth.values(1:20, N=3, smallest = TRUE)
nth.values(1:20, N=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.