which_min | R Documentation |
Where is is min or max value in a nmeric vector?
which_min(x, return.method = "first")
which_max(x, return.method = "first")
x |
[ |
return.method |
[
Default is “first”. |
Vector of integer position(s).
x = c(10, 24, 2, 2, 15, 2, 28)
lapply(c("first", "last", "random", "all"), function(m) {
which_min(x, return.method = m)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.