Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

minWhichMin

Fast joint calculation of row- or column-wise minima and indices of minimum elements


Description

Fast joint calculation of row- or column-wise minima and indices of minimum elements. Missing data are removed.

Usage

minWhichMin(x, byRow = FALSE, dims = 1)

Arguments

x

A numeric matrix or array.

byRow

Logical: should the minima and indices be found for columns (FALSE) or rows (TRUE)?

dims

Specifies dimensions for which to find the minima and indices. For byRow = FALSE, they are calculated for dimensions dims+1 to n=length(dim(x)); for For byRow = TRUE, they are calculated for dimensions 1,...,dims.

Value

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.

Author(s)

Peter Langfelder


WGCNA

Weighted Correlation Network Analysis

v1.70-3
GPL (>= 2)
Authors
Peter Langfelder <Peter.Langfelder@gmail.com> and Steve Horvath <SHorvath@mednet.ucla.edu> with contributions by Chaochao Cai, Jun Dong, Jeremy Miller, Lin Song, Andy Yip, and Bin Zhang
Initial release
2021-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.