View source: R/sparse_utilities.R
sparse2DT | R Documentation |
Convert a sparse matrix to a data.table
sparse2DT(matrix, with.names = FALSE, single.cell = FALSE, key = TRUE)
matrix |
sparse matrix to be used |
with.names |
return the row and column names from the sparse matrix default:FALSE |
single.cell |
returns the row names as Genes and column names as cells if from a single cell dataset default: FALSE |
key |
logical for whether the data.table key should be set default:FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.