as_matrix: Rcpp version's as.matrix

Description Usage Arguments Value Examples

View source: R/sup_funs.R

Description

Transform sparse matrix to matrix.

Usage

1
as_matrix(mat)

Arguments

mat

Sparse matrix.

Value

Matrix.

Examples

1
2
3
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)))

bayNorm documentation built on Nov. 8, 2020, 8:25 p.m.