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)
A numeric matrix or array.
Logical: should the minima and indices be found for columns (
FALSE) or rows (
Specifies dimensions for which to find the minima and indices. For
byRow = FALSE, they are calculated for dimensions
n=length(dim(x)); for For
byRow = TRUE, they are calculated for dimensions 1,...,
A list with two components,
which; each is a vector or array with dimensions
byRow = FALSE, and
byRow = TRUE.