title: Set all NaN elements in sparse matrix to zero
body: <p>What's the equivalent of the Matlab statement <code>X(isnan(X))=0</code> in R? Note <code>X</code> is of type of <code>matrix.csr</code> in R. (This is from pkg:SparseM.) </p>