rowRanges {matrixStats} | R Documentation |
Gets the range of values in each row (column) of a matrix
Description
Gets the range of values in each row (column) of a matrix.
Usage
rowRanges(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x),
..., useNames = TRUE)
rowMins(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...,
useNames = TRUE)
rowMaxs(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...,
useNames = TRUE)
colRanges(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x),
..., useNames = TRUE)
colMins(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...,
useNames = TRUE)
colMaxs(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...,
useNames = TRUE)
Arguments
x |
|
rows |
A |
cols |
A |
na.rm |
If |
dim. |
An |
... |
Not used. |
useNames |
If |
Value
rowRanges()
(colRanges()
) returns a
numeric
Nx2 (Kx2) matrix
, where N
(K) is the number of rows (columns) for which the ranges are calculated.
rowMins()/rowMaxs()
(colMins()/colMaxs()
) returns a
numeric
vector
of length N (K).
Author(s)
Henrik Bengtsson
See Also
rowOrderStats
() and pmin.int
().