This function locates the minimum value in a vector (similar to which.min), however it will randomly break ties when there are multiple minimum values.
1 | which.random.min(x, favour_first = F)
|
x |
numeric vector. |
favour_first |
logical. If this is TRUE, and the first value in the vector supplies is one of the min, the index for the first value will always be returned. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.