argmax | R Documentation |
Returns the indices of the maximum or minimum values along an axis.
argmax(x, rows = TRUE)
argmin(x, rows = TRUE)
x |
A matrix. |
rows |
If |
A vector of indices.
m <- mat("94, 20, 44; 40, 92, 51; 27, 69, 74")
argmax(m)
argmin(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.