Finding row index containing maximum value using R

后端 未结 3 1781
醉话见心
醉话见心 2020-11-30 23:28

Given the following matrix lets assume I want to find the maximum value in column two:

mat <- matrix(c(1:3,7:9,4:6), byrow = T, nc = 3)
mat
     [,1] [,2]         


        
3条回答
提交回复
热议问题