as.sparse {SeuratObject} | R Documentation |
Cast to Sparse
Description
Convert dense objects to sparse representations
Usage
as.sparse(x, ...)
## S3 method for class 'data.frame'
as.sparse(x, row.names = NULL, ...)
## S3 method for class 'Matrix'
as.sparse(x, ...)
## S3 method for class 'matrix'
as.sparse(x, ...)
## S3 method for class 'ngCMatrix'
as.sparse(x, ...)
Arguments
x |
An object |
... |
Arguments passed to other methods |
row.names |
|
Value
A sparse representation of the input data
[Package SeuratObject version 5.0.2 Index]