as_matrix {inferCSN} | R Documentation |
Attempts to turn a dgCMatrix into a dense matrix
Description
Attempts to turn a dgCMatrix into a dense matrix
Usage
as_matrix(x)
Arguments
x |
A matrix. |
Examples
sparse_matrix <- Matrix::sparseMatrix(
i = sample(1:200, 50),
j = sample(1:200, 50),
x = rnorm(50),
dims = c(200, 200),
dimnames = list(
paste0("a", rep(1:200)),
paste0("b", rep(1:200))
)
)
identical(
as.matrix(sparse_matrix),
as_matrix(sparse_matrix)
)
[Package inferCSN version 1.0.5 Index]