我想应用鼠标包,但我无法将大型稀疏矩阵转换为矩阵。
library(Matrix)
library(mice)
i=c(2,9,6:10^7)
j=c(2,9,6:10^7)
x=7*(1:7^7)
write.csv(a,"a.csv")
c=read.csv("a.csv")
w=sparseMatrix(i=c[,1],j=c[,2],x=c[,3])
w=as.matrix(w)
Error in asMethod(object) : Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, line 105