[R] Per-row minima for matrix

2007-05-31 Thread Dirk De Becker
Hi all, Probably a very easy question, but I was wondering whether or not it is possible to calculate the per-row (or per-column) minima and maxima for a matrix object. Thanks in advance, Dirk -- Dirk De Becker Work: Kasteelpark Arenberg 30 3001 Heverlee phone:

Re: [R] Per-row minima for matrix

2007-05-31 Thread John Kane
apply(mat1, 1, min) should do it ( or max ) --- Dirk De Becker [EMAIL PROTECTED] wrote: Hi all, Probably a very easy question, but I was wondering whether or not it is possible to calculate the per-row (or per-column) minima and maxima for a matrix object. Thanks in advance,