Skip to content
Prev 300393 / 398506 Next

Finding the column with the maximum value by row

apply(a, 1, which.max)

Apply the which.max() function to the matrix a row-wise (1)

Michael

On Tue, Jul 17, 2012 at 5:03 PM, Christopher Desjardins
<cddesjardins at gmail.com> wrote: