[R] Huge matrix: allocation works but assignment fails

Remi remi.proville at ens.fr
Thu Oct 1 13:45:29 CEST 2009

Hello everyone,

I am working with one big matrix:

on a Linux computer with 16Go of RAM.

I can actually create the matrix, and even access elements:

but if I try to change one element, it fails:
Erreur : impossible d'allouer un vecteur de taille 2531250 Ko
(Failed to allocate a vector of size...)

What can I do? And, maybe even more important, how can one explains such 
a behavior?

Thank you for any help/advice

Rémi Proville.

More information about the R-help mailing list