Description Usage Arguments Value Examples
sparsity percentage of a sparse matrix
1 | matrix_sparsity(sparse_matrix)
|
sparse_matrix |
a sparse matrix |
a numeric value (percentage)
1 2 3 4 5 6 7 | library(textTinyR)
tmp = matrix(sample(0:1, 100, replace = TRUE), 10, 10)
sp_mat = dense_2sparse(tmp)
dbl = matrix_sparsity(sp_mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.