View source: R/R_funclib_movAPA.r
asAnyMatrix | R Documentation |
asAnyMatrix convert data.frame/matrix/dgCMatrix to matrix or dgCMatrix. For PACdataset@counts in previous movAPA, the data type is data.frame. Please call asAnyMatrix(PACds@counts) to make it compatible to new movAPA. If dat is data-sparse or type-sparse, then return dgCMatrix if dat is data.frame, then return matrix or dgCMatrix (when forceSparse or data-sparse)
asAnyMatrix(dat, forceSparse = FALSE)
dat |
a data.frame/matrix/dgCMatrix or any object that can be converted to matrix using as.matrix. |
forceSparse |
if TRUE, then force the dat to sparse matrix (dgCMatrix) |
A matrix or dgCMatrix which can be used as the count slot of a PACdataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.