colTabulates {DelayedMatrixStats} | R Documentation |
Tabulates the values in a matrix by row (column).
colTabulates(x, rows = NULL, cols = NULL, values = NULL, ...) rowTabulates(x, rows = NULL, cols = NULL, values = NULL, ...) ## S4 method for signature 'DelayedMatrix' colTabulates(x, rows = NULL, cols = NULL, values = NULL, force_block_processing = FALSE, ...) ## S4 method for signature 'DelayedMatrix' rowTabulates(x, rows = NULL, cols = NULL, values = NULL, force_block_processing = FALSE, ...)
x |
A NxK DelayedMatrix. |
rows |
A |
cols |
A |
values |
An |
... |
Additional arguments passed to specific methods. |
force_block_processing |
|
Returns a NxJ (KxJ) matrix
where N (K) is the
number of row (column) vector
s tabulated and J is the
number of values counted.
# 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)