I have a sparse matrix having more than 200k rows and 200k columns. When I use
as.data.frame(as.matrix(sparse_matrix)
I get the following error message
Error: cannot allocate vector of size 1232.3 Gb In addition: Warning message: In asMethod(object) : sparse->dense coercion: allocating vector of size 1232.3 GiB