colTabulates,DelayedMatrix-method | R Documentation |
Tabulates the values in a matrix-like object by row (column).
## S4 method for signature 'DelayedMatrix'
colTabulates(
x,
rows = NULL,
cols = NULL,
values = NULL,
force_block_processing = FALSE,
...,
useNames = TRUE
)
## S4 method for signature 'DelayedMatrix'
rowTabulates(
x,
rows = NULL,
cols = NULL,
values = NULL,
force_block_processing = FALSE,
...,
useNames = TRUE
)
x |
A NxK DelayedMatrix. |
rows , cols |
A |
values |
the values to search for. |
force_block_processing |
|
... |
Additional arguments passed to specific methods. |
useNames |
If |
The S4 methods for x
of type matrix
,
array
, table
, or numeric
call
matrixStats::rowTabulates
/
matrixStats::colTabulates
.
a numeric
NxJ
(KxJ
)
matrix
, where N (K) is the number of rows (columns) for
which the J values are calculated.
Peter Hickey
matrixStats::rowTabulates()
and
matrixStats::colTabulates()
which
are used when the input is a matrix
or numeric
vector.
base::table()
# A DelayedMatrix with a 'DataFrame' seed
dm_DF <- DelayedArray(S4Vectors::DataFrame(C1 = rep(1L, 5),
C2 = as.integer((0:4) ^ 2),
C3 = seq(-5L, -1L, 1L)))
colTabulates(dm_DF)
rowTabulates(dm_DF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.