View source: R/sparse_matrix.R
is_sparse | R Documentation |
Check if an object is a sparse matrix
is_sparse(x)
x |
An object to test |
library(Matrix) is_sparse(matrix(1:10)) # FALSE is_sparse(Matrix::rsparsematrix(100, 200, .01)) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.