as_matrix: Sparse Matrix change to Normal Matrix

Description Usage Arguments Examples

View source: R/hello.R

Description

this function turns sparse matrix into norm matrix, especially for those matrixs which can't be changed by as.matrix()

Usage

1
as_matrix(mat)

Arguments

mat

Examples

1
2
3
4
5
i <- c(1,3:8);
j <- c(2,9,6:10);
x <- 7 * (1:7)
(A <- sparseMatrix(i, j, x = x))
A.norm <- as_matrix(A)

PerseusFu/bioinfobenchr documentation built on Dec. 18, 2021, 7:38 a.m.