minindexmatrix {tslars} | R Documentation |
To find the row and column where a matrix reaches its minimum.
minindexmatrix(x)
x |
A matrix |
A vector of length two is returned, of which the first (second) element indicates at
which row (column) the matrix x
reaches its minimum.
Sarah Gelper
which.min
a <- matrix(rnorm(20),ncol=4) m <- minindexmatrix(a)