find.sub.argmin | R Documentation |
Get the index of the smallest dimension apart from an index
find.sub.argmin(nums, idx, seed = NULL)
nums |
A vector of numbers |
idx |
An index to be excluded |
seed |
(Optional) If provided, used to seed the random sampling (for reproducibility). |
The index of the second smallest dimension (as an integer).
nums <- c(1,3,2)
find.sub.argmin(nums,1)
## return 3
nums <- c(1,1,2)
find.sub.argmin(nums,1)
## return 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.