Max/Min in Matrix
Posted: Thu Aug 22, 2013 6:23 am
Hi, I try to get the max and min of each column of a matrix, using the cmax and cmin command.
However, if the matrix contains NA values these commands don't work,
Therefore I created a table including the stats of the matrix, and then create a vector, which is filled by the min and max values given in the stats table.
Is it possible to get it easier (by command)? Or what is the reason, why cmin/cmax are not working correctly?
However, if the matrix contains NA values these commands don't work,
Therefore I created a table including the stats of the matrix, and then create a vector, which is filled by the min and max values given in the stats table.
Is it possible to get it easier (by command)? Or what is the reason, why cmin/cmax are not working correctly?