Creating a large matrix in R

How can I create a large matrix in R or how can I pin a large matrix in some object?

y <- matrix(rnorm(2e4*2e4),1:20000,1:20000)
Error: cannot allocate vector of size "..." Gb

How can this matrix be distinguished?

+3
source share
2 answers

I am a big fan of the package big.memoryand I am a Windows user. To use the package, I first decided to stay with R 2.15, since it still has a functional version of big.memorythe Windows version available on CRAN. For R 3.0, I had to compile this old version to work with my large matrices.

+2
source

I'm not sure why I give this a serious answer, but here goes ...

1. bigmemory . , , , , .

2. , :

  y <- outer(1:20000,1:20000)
  Error: cannot allocate vector of size "..." Gb

? , , ...

3. , RSQlite? dplyr .

+3

All Articles