Finding row index containing maximum value using R

See ?which.max

> which.max( matrix[,2] )
[1] 2

Leave a Comment