| sparsify | R Documentation |
Concise function to transform dense to sparse matrices of class
dgCMatrix (see sparseMatrix).
sparsify(x)
x |
Numeric matrix to transform to a sparse 'dgCMatrix'. |
Returns 'x' as dgCMatrix.
sparsify(matrix(rnorm(9L), 3L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.