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

Tong Wang wangtong at usc.edu
Wed Sep 6 10:37:22 CEST 2006


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



More information about the R-help mailing list