as_matrix | R Documentation |
Attempts to turn a dgCMatrix into a dense matrix
as_matrix(x)
x |
A matrix. |
data("pancreas_sub")
system.time(mat1 <- as.matrix(slot(pancreas_sub[["RNA"]], "counts")))
system.time(mat2 <- as_matrix(slot(pancreas_sub[["RNA"]], "counts")))
identical(mat1, mat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.