Displaying 1 result from an estimated 1 matches for "r_old".
Did you mean:
__old
2007 May 16
3
Reshape a sparse matrix
Hi,
I'd like to reshape a sparse matrix generated from the Matrix package. I can't seem to do it with the command
dim(A) <- c(6,9)
which works perfectly with the base package matrices, but with the sparse matrices it errors with
Error in dim(A) = c(6, 9) : dim<- : invalid first argument
Manipulating the Dim attribute of the sparse Matrix does not produce the desired effect. A