[R] matrix size

roger koenker roger at ysidro.econ.uiuc.edu
Tue Jan 2 00:24:10 CET 2007


On Jan 1, 2007, at 4:43 PM, Armelini, Guillermo wrote:

> Hello everyone
> Could anybody tell me how to set the following matrix?
>
> n2<-matrix(nrow=10185,ncol=10185,seq(0,0,length=103734225))

You can use:

library(SparseM)
as.matrix.coo(0,10185,10185)

but then you need to find something interesting to do with such a
boring matrix...


>
> R answer was
> Error: cannot allocate vector of size 810423 Kb
>
> Are there any solution? I tried to increase the memory size but it  
> didn't work
> G
>
>
>
> This message has been scanned for viruses by TRENDMICRO,\ an... 
> {{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting- 
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list