colQuantiles,DelayedMatrix-method | R Documentation |
Calculates quantiles for each row (column) of a matrix-like object.
## S4 method for signature 'DelayedMatrix'
colQuantiles(
x,
rows = NULL,
cols = NULL,
probs = seq(from = 0, to = 1, by = 0.25),
na.rm = FALSE,
type = 7L,
force_block_processing = FALSE,
...,
useNames = TRUE,
drop = TRUE
)
## S4 method for signature 'DelayedMatrix'
rowQuantiles(
x,
rows = NULL,
cols = NULL,
probs = seq(from = 0, to = 1, by = 0.25),
na.rm = FALSE,
type = 7L,
force_block_processing = FALSE,
...,
useNames = TRUE,
drop = TRUE
)
x |
A NxK DelayedMatrix. |
rows , cols |
A |
probs |
A numeric vector of J probabilities in [0, 1]. |
na.rm |
If |
type |
An integer specifying the type of estimator. See
|
force_block_processing |
|
... |
Additional arguments passed to specific methods. |
useNames |
If |
drop |
If |
The S4 methods for x
of type matrix
,
array
, table
, or numeric
call
matrixStats::rowQuantiles
/
matrixStats::colQuantiles
.
a numeric
NxJ
(KxJ
)
matrix
, where N (K) is the number of rows (columns) for
which the J values are calculated.
Peter Hickey
matrixStats::rowQuantiles()
and
matrixStats::colQuantiles()
which
are used when the input is a matrix
or numeric
vector.
stats::quantile
# A DelayedMatrix with a 'data.frame' seed
dm_df <- DelayedArray(data.frame(C1 = rep(1L, 5),
C2 = as.integer((0:4) ^ 2),
C3 = seq(-5L, -1L, 1L)))
# colnames, if present, are preserved as rownames on output
colQuantiles(dm_df)
# Input has no rownames so output has no rownames
rowQuantiles(dm_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.