where.max {plsdof} | R Documentation |
This function computes the argmax of a matrix.
where.max(M)
M |
matrix |
The function returns the row and the column index of the argmax of M.
vector that contains the row index and the column index
Nicole Kraemer
M<-matrix(sample(20),ncol=4) index<-which.max(M)