[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: ++32(0)16/32.14.44
  fax: ++32(0)16/32.85.90
Home: Waversebaan 90
  3001 Heverlee
  phone: ++32(0)16/23.36.65
[EMAIL PROTECTED]
mobile phone: ++32(0)498/51.19.86


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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,
 
 Dirk
 
 -- 
 Dirk De Becker
 Work: Kasteelpark Arenberg 30
   3001 Heverlee
   phone: ++32(0)16/32.14.44
   fax: ++32(0)16/32.85.90
 Home: Waversebaan 90
   3001 Heverlee
   phone: ++32(0)16/23.36.65
 [EMAIL PROTECTED]
 mobile phone: ++32(0)498/51.19.86
 
 
 Disclaimer:
 http://www.kuleuven.be/cwis/email_disclaimer.htm
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained,
 reproducible code.


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.