Description Usage Arguments Value Examples
Quickly finds the k'th largest element in a (large) vector
1 | find.kth.element(x, k)
|
x |
Numeric vector. |
k |
Integer with the rank of the desired element. |
numeric k'th largest element
1 2 3 | y <- rnorm(1e3)
stopifnot(identical(y[order(y,decreasing=TRUE)[100]],
find.kth.element(y,100)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.