as.sparse | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.