Fast joint calculation of row- or column-wise minima and indices of minimum elements
Fast joint calculation of row- or column-wise minima and indices of minimum elements. Missing data are removed.
minWhichMin(x, byRow = FALSE, dims = 1)
x |
A numeric matrix or array. |
byRow |
Logical: should the minima and indices be found for columns ( |
dims |
Specifies dimensions for which to find the minima and indices. For |
A list with two components, min
and which
; each is a vector or array with dimensions
dim(x)[(dims+1):n]
(with n=length(dim(x))
) if byRow = FALSE
, and
dim(x)[1:dims]
if byRow = TRUE
.
Peter Langfelder
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.