[R] R save very huge matrices in files
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Nov 3 13:25:54 CET 2005
Please read the `R Data Import/Export Manual' and the help page for
write.table.
Is this really rw1061, that is R 1.6.1? If so you need to upgrade, as
write.table is _very_ much more efficient in recent versions.
On Thu, 3 Nov 2005 moritz.marienfeld at arcor.de wrote:
>
> I have to work with really huge matrices (about 1000*1000 or more). And I want to save those matrices in some file on my computer.
> I tried to do so by using the command
>
> write.tabe(SMatrix,file="C:/Programme/rw1061/SMatrix.txt",sep=" ",quote=FALSE,row.names=FALSE,col.names=FALSE)
>
> SMatrix is the matrix I want as a file.
>
> Unfortunately this does not work. Error message:
>
> Error: cannot allocate vector of size 32665 Kb
> In addition: Warning message:
> Reached total allocation of 255Mb: see help(memory.size)
>
> Is there any command, which could help? What can I to in order to save SMatrix?
>
> Moritz Marienfeld
>
> ______________________________________________
> 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
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list