Skip to content
Prev 168603 / 398502 Next

Taking the min of each row in a matrix

?apply

e.g. for the 'min'

apply(yourMatrix, 1, min, na.rm=TRUE)

On Thu, Jan 29, 2009 at 11:58 AM, Will Glass-Husain
<wglasshusain at gmail.com> wrote: