sparsify {sanic} | 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))