max.col {MASS} | R Documentation |
Find the maximum position for each row of a matrix, breaking ties at random.
max.col(A)
A |
a matrix |
Ties are broken at random. The determination of 'tie' assumes that the entries are probabilities.
index of a maximal value for each row.