rowMax: Maximum value for each row in a matrix

rowMaxR Documentation

Maximum value for each row in a matrix

Description

Maximum value for each row in a matrix

Usage

rowMax(X, mode = "best")

Arguments

X

A matrix of floats.

mode

A string, the method for defining scores for filtering cells: best, second and delta. best: highest value for each row, similarly for the second. delta is the difference between the best and the second.

Value

a vector of the collapsed value for each row, depending on the mode used.

Examples

matA <- matrix(sample(seq(12)), nrow = 3)
rowMax(matA)

davismcc/cardelino documentation built on Nov. 19, 2022, 2:44 a.m.