[R] What is the matrix version of min()

From: Tong Wang <wangtong_at_usc.edu>
Date: Wed 06 Sep 2006 - 08:37:22 GMT


Hi,

    Is there a function which operates on a matrix and return a vector of min/max of each rol/col ? say, X= 2, 1

                3,  4 

min.col(X)=c(2,1)

thanks a lot.

tong



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. Received on Wed Sep 06 19:59:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.