Description Usage Arguments Details Value Author(s) See Also
Find row and column maximum values for numeric arrays.
1 2 3 4
colMax(x, na.rm = FALSE, dims = 1) rowMax(x, na.rm = FALSE, dims = 1) which.colMax(x, na.rm = FALSE, dims = 1) which.rowMax(x, na.rm = FALSE, dims = 1)
an array of two or more dimensions, containing numeric values
logical. Should missing values (including 'NaN') be omitted from the calculations? (not currently implemented)
Which dimensions are regarded as "rows" or "columns" to maximize.
These functions are designed to act like the
of functions except that they only currently handle real arrays
and will not remove
A numeric array of suitable size, or a vector if the result is
names for a
vector result) are taken from the original array.
which.* functions, an integer array of suitable
size, or a vector if the result is one-dimensional. The indecies
returned are for accessing
x one-dimensionally (i.e.
which.colMax(), the actual row
indecies my be determined using
nrow(x) + 1. For
which.rowMax(), the actual column indecies
may be determined using
Colin A. Smith, email@example.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.