search for: maxofrows

Displaying 1 result from an estimated 1 matches for "maxofrows".

Did you mean: max_rows
2007 May 08
4
minimum of each row in a matrix
Hallo, I just followed the discussion of the title: minimum from matrix. I have a similar problem. > a=matrix(c(0,2, 0, 0, 1, 3, 0, 3, 2, 0, 3, 5, 0, 4, 0, 0),ncol=4) > a=rbind(a,1:4) > a [,1] [,2] [,3] [,4] [1,] 0 1 2 0 [2,] 2 3 0 4 [3,] 0 0 3 0 [4,] 0 3 5 0 [5,] 1 2 3 4 > > minOfColumns=apply(a, 2, function(x)