to_sparse | R Documentation |
sparseMatrix
Convert a matrix
or data.frame
to a sparseMatrix.
to_sparse(obj, transpose = FALSE, allow_delayed_array = TRUE, verbose = TRUE)
obj |
A single-cell object supported by scKirby. See converters for a table of all supported conversions. |
transpose |
Transpose the matrix with |
allow_delayed_array |
Allow DelayedArray. |
verbose |
Print messages. |
A sparseMatrix.
obj <- data.frame(gene=paste0("gene",seq_len(10)),
matrix(data = 0,nrow=10,ncol = 20))
obj2 <- to_sparse(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.