which_max2 | R Documentation |
A generalization of which.max() that works on matrices and data.frames too.
which_max2(x)
x |
a numeric vector, matrix or data.frame. |
m = matrix(runif(9), nrow=3)
m
which_max2(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.