colIQRs {DelayedMatrixStats} | R Documentation |
Estimates of the interquartile range for each row (column) in a matrix.
colIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, ...) rowIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, ...) ## S4 method for signature 'DelayedMatrix' colIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, force_block_processing = FALSE, ...) ## S4 method for signature 'DelayedMatrix' rowIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, force_block_processing = FALSE, ...)
x |
A NxK DelayedMatrix. |
rows |
A |
cols |
A |
na.rm |
If |
... |
Additional arguments passed to specific methods. |
force_block_processing |
|
Returns a numeric
vector
of
length N (K).
Contrary to IQR
, which gives
an error if there are missing values and na.rm = FALSE
, iqr()
and its corresponding row and column-specific functions return
NA
_real_.
# A DelayedMatrix with a 'matrix' seed dm_matrix <- DelayedArray(matrix(c(rep(1L, 5), as.integer((0:4) ^ 2), seq(-5L, -1L, 1L)), ncol = 3)) # A DelayedMatrix with a 'Matrix' seed dm_Matrix <- DelayedArray(Matrix::Matrix(c(rep(1L, 5), as.integer((0:4) ^ 2), seq(-5L, -1L, 1L)), ncol = 3)) colIQRs(dm_matrix) # Only using rows 2-4 rowIQRs(dm_matrix, rows = 2:4)