View source: R/aggregate_rows_monocle3.R
aggregate_rows_monocle3 | R Documentation |
Aggregate rows: monocle3
aggregate_rows_monocle3(
x,
groupings = NULL,
form = NULL,
fun = "sum",
na.action = stats::na.omit
)
x |
Input matrix. |
groupings |
Gene groups of the same length as |
form |
Formula. |
fun |
Aggregation function. |
na.action |
Na action. |
Aggregated matrix.
X <- Matrix::rsparsematrix(nrow = 1000, ncol = 2000, density = .10)
groupings <- rep(c("A","B"),nrow(X)/2)
X2 <- orthogene:::aggregate_rows_monocle3(x = X, groupings=groupings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.