I had a large dense matrix, from which I subset some of the data. Now I have a smaller DGmatrix which I have to write into CSV.
DGmatrix
I tried using writeMM()
writeMM()