Description Usage Arguments Value
Get the indices of the smallest k elements of v. This code currently assumes that k >= length(v)
1 | get_inds_smallest_k(v, k)
|
v |
a vector |
k |
number of indices to return |
a vector of length k containing the indices of the k smallest elements of v, in ascending order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.