I have a sparse matrix
Formal class \'dgCMatrix\' [package \"Matrix\"] with 6 slots ..@ i : int [1:37674] 1836 2297 108 472 1735 1899 2129 2131 5 67
df <- as.data.frame(as.matrix(mat))
as.matrix will turn the sparse matrix to a dense matrix, if it is not too large:-) Then you can convert it to a data frame.
as.matrix
(mat is the example dgCMatrix from @flodel 's answer)
mat