Skip to content

best option for big 3D arrays?

6 messages · Djordje Bajic, Duncan Murdoch, steven mosher

#
On 12-02-10 9:12 AM, Djordje Bajic wrote:
I'd really recommend getting more RAM, so you can have the whole thing 
loaded in memory.  16 Gb would be nice, but even 8Gb should make a 
substantial difference.  It's going to be too big to store as an array 
since arrays have a limit of 2^31-1 entries, but you could store it as a 
list of matrices, e.g.

x <- vector("list", 904)
for (i in 1:904)
   x[[i]] <- matrix(0, 904,904)

and then refer to entry i,j,k as x[[i]][j,k].

Duncan Murdoch
2 days later
10 days later
3 days later