[R] R.matlab memory use

Ben Bolker bbolker at gmail.com
Mon Dec 20 19:54:13 CET 2010


Stefano Ghirlanda <dr.ghirlanda <at> gmail.com> writes:

> 
> Hi Ben,
> Thanks for your reply. My data structure is about 20000 x 2000 so one
> order of magnitude the one you tried. I have no problem saving and
> reading smaller data structures (even large ones, just not his large)
> between octave and R using octave's "save -7" (which saves MATLAB v5
> files) and R.matlab's readMat. And I can save in text format in octave
> and read in R using read.octave (from package foreign) so it's not a
> big deal. I was just surprised that R.matlab needed more memory than I
> have (I have 3GB on this machine).
> 
> Thanks,
> Stefano
> 
> On Sun, Dec 19, 2010 at 10:54 PM, Ben Bolker <bbolker <at> gmail.com> wrote:
> > Stefano Ghirlanda <dr.ghirlanda <at> gmail.com> writes:
> >
> >> I am trying to load into R a MATLAB format file (actually, as saved by
> >> octave). The file is about 300kB but R complains with a memory
> >> allocation error:

 [snip]

    A few more questions about what's going on: it makes sense that
your ASCII format file is about 75 M (i.e., 10x larger than mine);
presumably your data set is highly redundant so that it can be compressed
to 300Kb?  
   Any chance you can post your data somewhere, or figure out a way
to generate a sample data set that is similar (i.e. starts at about
75 M and compresses to 300Kb when saved appropriately in octave)?


  Ben Bolker



More information about the R-help mailing list