rowMins: Row-wise minima and maxima

View source: R/rowMins.R

rowMinsR Documentation

Row-wise minima and maxima

Description

Row-wise minima and maxima

Usage

rowMins(x)
rowMaxs(x)

Arguments

x

a numeric (or logical) matrix or data frame

Details

The function coerces x to be a data frame and then uses pmin (pmax) on it. This is the same as apply(x, 1, min) but generally faster if the number of rows is large.

Value

numeric vector of length nrow(x) giving the row-wise minima (or maxima) of x.


rje42/rje documentation built on April 3, 2024, 11:08 p.m.