powered by
Returns the indices of the maximum or minimum values along an axis.
argmax(x, rows = TRUE)argmin(x, rows = TRUE)
argmin(x, rows = TRUE)
A vector of indices.
A matrix.
If TRUE (the default) the indices of each row max/min is returned.
TRUE
m <- mat("94, 20, 44; 40, 92, 51; 27, 69, 74") argmax(m) argmin(m)
Run the code above in your browser using DataLab