| rowRanges {matrixStats} | R Documentation |
Gets the range of values in each row (column) of a matrix.
rowRanges(x, na.rm=FALSE, ...) colRanges(x, na.rm=FALSE, ...) rowMins(x, na.rm=FALSE, ...) colMins(x, na.rm=FALSE, ...) rowMaxs(x, na.rm=FALSE, ...) colMaxs(x, na.rm=FALSE, ...)
x |
A numeric NxK matrix. |
na.rm |
If TRUE, NAs are excluded first, otherwise not. |
... |
Not used. |
The rowRanges() function uses the much faster rowOrderStats()
if there are no missing values.
rowRanges() (colRanges()) returns a
numeric Nx2 (Kx2) matrix.
rowMins()/rowMaxs() (colMins()/colMaxs()) returns a
numeric vector of length N (K).
Henrik Bengtsson (http://www.braju.com/R/)
rowOrderStats() and rowRanges().