dense_2sparse | R Documentation |
convert a dense matrix to a sparse matrix
dense_2sparse(dense_mat)
dense_mat |
a dense matrix |
a sparse matrix
library(textTinyR)
tmp = matrix(sample(0:1, 100, replace = TRUE), 10, 10)
sp_mat = dense_2sparse(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.