search for: minofrow

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

Did you mean: minofrows
2007 May 08
4
minimum of each row in a matrix
...2, function(x) min(x[x!=0]) ) > minOfColumns [1] 1 1 2 4 > maxOfColumns=apply(a, 2, function(x) max(x) ) > maxOfColumns [1] 2 3 5 4 > How looks like the command for the minimum of the rows? I tried several possibilities with apply but did not get the wanted result. The result should be minOfRows = 0 0 0 0 1 Thanks, Corinna