Description Usage Arguments Value
Convert between data frames and sparse matrices
1 2 3 4 5 6 7 8 | as.sparse(x, ...)
## S3 method for class 'data.frame'
as.sparse(x, ...)
## S3 method for class 'Matrix'
as.data.frame(x, row.names = NULL, optional = FALSE,
..., stringsAsFactors = default.stringsAsFactors())
|
x |
An object |
... |
Arguments passed to other methods |
row.names |
|
optional |
logical. If |
stringsAsFactors |
logical: should the character vector be converted to a factor? |
as.sparse
: A sparse representation of the input data
as.data.frame.Matrix
: A data frame representation of the S4 Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.