Description Usage Arguments Value Examples
View source: R/sup_funs.R
Transform sparse matrix to matrix.
1
as_matrix(mat)
mat
Sparse matrix.
Matrix.
1 2 3
aa<-matrix(seq(1,6),nrow=2,ncol=3) qq<-as(as.matrix(aa), "dgCMatrix") all.equal(unname(as_matrix(qq)),unname(as.matrix(qq)))
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.