colMax {xcms} | R Documentation |
Find row and column maximum values for numeric arrays.
colMax(x, na.rm = FALSE, dims = 1) rowMax(x, na.rm = FALSE, dims = 1)
x |
an array of two or more dimensions, containing numeric values |
na.rm |
logical. Should missing values (including 'NaN') be omitted from the calculations? (not currently implemented) |
dims |
Which dimensions are regarded as "rows" or "columns" to maximize.
For rowMax , the maximum is over dimensions dims+1,
... ; for colMax it is over dimensions 1:dims .
|
These functions are designed to act like the colSums
series
of functions except that they only currently handle real arrays
and will not remove NA
values.
A numeric array of suitable size, or a vector if the result is
one-dimensional. The dimnames
(or names
for a
vector result) are taken from the original array.
Colin A. Smith, csmith@scripps.edu