Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] memory cleaning

Claude Messiaen - Urc Necker

2005-07-22

Replies:

Hi R Users,
After some research I haven't find what I want.
I'm manipulating a dataframe with 70k rows and 30 variables, and I run out of memory when exporting this in a *.txt file

after some computing I have used :

> memory.size()/1048576.0
[1] 103.7730

and I make my export :

> write.table(cox,"d:/tablefinal2.txt",row.names=F,sep=';')
> memory.size()/1048576.0
[1] 241.9730

I'm surprised so I try removing some objects :
> rm (trait,tany,tnor,toth,suivauxdany,dnor,doth,mod1,
mod2,mod3,lok1,lok2,lok3,aux,risque,risk)
and check memory space :
> memory.size()/1048576.0
[1] 242.1095

First, I don't understand why when removing objects the memory used increase ?
Next, why the memory used double when I make an export ?
I look forward to your reply

Claude

 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.