is_sparse: Check if an object is a sparse matrix

Description Usage Arguments Examples

View source: R/sparse_matrix.R

Description

Check if an object is a sparse matrix

Usage

1

Arguments

x

An object to test

Examples

1
2
is_sparse(matrix(1:10)) # FALSE
is_sparse(Matrix::rsparsematrix(100, 200, .01)) # TRUE

dynutils documentation built on March 22, 2021, 5:06 p.m.