as.sparse {SeuratObject} | R Documentation |
Convert dense objects to sparse representations
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, ...)
x |
An object |
... |
Arguments passed to other methods |
row.names |
|
A sparse representation of the input data