as_matrix: Rcpp version's as.matrix

View source: R/sup_funs.R

as_matrixR Documentation

Rcpp version's as.matrix

Description

Transform sparse matrix to matrix.

Usage

as_matrix(mat)

Arguments

mat

Sparse matrix.

Value

Matrix.

Examples

aa<-matrix(seq(1,6),nrow=2,ncol=3)
qq<-as(as.matrix(aa), "dgCMatrix")
all.equal(unname(as_matrix(qq)),unname(as.matrix(qq)))

WT215/bayNorm documentation built on Sept. 2, 2022, 1:46 a.m.