is_sparse: Check if an object is a sparse matrix

View source: R/sparse_matrix.R

is_sparseR Documentation

Check if an object is a sparse matrix

Description

Check if an object is a sparse matrix

Usage

is_sparse(x)

Arguments

x

An object to test

Examples

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

dynutils documentation built on Oct. 11, 2022, 5:07 p.m.