rowMins | R Documentation |
Row-wise minima and maxima
rowMins(x) rowMaxs(x)
x |
a numeric (or logical) matrix or data frame |
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.
numeric vector of length nrow(x)
giving the row-wise minima (or maxima) of x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.