[R] dput sparseMatrix list

Lietz, Haiko Haiko.Lietz at gesis.org
Tue Jan 5 08:17:37 CET 2016


hi all,

when dputting a list of sparse matrices (Matrix package), the output does not contain the data but the information that the list contains sparse matrices.

M <- sparseMatrix(i = c(2, 1), j = c(1, 2), x = c(1, 1))

dput(M) ... works.

dput(list(M, M)) ... does not work.

how can I dput a list of sparse matrices?

thx

haiko


	[[alternative HTML version deleted]]



More information about the R-help mailing list