sparse2DT: Convert a sparse matrix to a data.table

View source: R/sparse_utilities.R

sparse2DTR Documentation

Convert a sparse matrix to a data.table

Description

Convert a sparse matrix to a data.table

Usage

sparse2DT(matrix, with.names = FALSE, single.cell = FALSE, key = TRUE)

Arguments

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


dbrookeUAB/dbsinglecell documentation built on May 2, 2023, 12:49 a.m.