as_matrix | R Documentation |
Transform sparse matrix to matrix.
as_matrix(mat)
mat |
Sparse matrix. |
Matrix.
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.
For more information on customizing the embed code, read Embedding Snippets.