as_matrix: Convert a large sparse matrix into a dense matrix without...

View source: R/sub_functions.R

as_matrixR Documentation

Convert a large sparse matrix into a dense matrix without errors

Description

Avoid the following error . Error in asMethod(object) : . Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, the code comes from https://xuzhougeng.top/archives/R-Sparse-Matrix-Note

Usage

as_matrix(mat)

Arguments

mat

a big sparse matrix of a type coercible to dense Matrix::Matrix

Value

a matrix


dengchunyu/scPagwas documentation built on Nov. 29, 2024, 2:53 p.m.