Re: [R] large matrices in SparseM

2009-08-14 Thread Ze grisi
works properly Thanks, Jose On Fri, Aug 14, 2009 at 12:24 PM, Ze grisi wrote: > Hi there, > > I'm having a problem when trying to create a large matrix (1,000,000 x > 1,000,000) of the .csr type (package 'SparseM'). > > k <- rep(0,100) > > tmp <-

[R] large matrices in SparseM

2009-08-14 Thread Ze grisi
Hi there, I'm having a problem when trying to create a large matrix (1,000,000 x 1,000,000) of the .csr type (package 'SparseM'). > k <- rep(0,100) > tmp <- length(k) > tmp2 <- as.matrix.csr(0,tmp,tmp) Error in if (length(x) == nrow * ncol) x <- matrix(x, nrow, ncol) else { : missing value w