Dear all: I am another R-beginner in the state. I have tried to analyze a large data (3,600 kb as csv format) set with R. When I type lm(x~y), it says> ===> Error: cannot allocate vector of size 1017272 kb. > In addition: Warning message: > Reached total allocation of 255MB: see help(memory.size) > ===> So, I tried the following. > >memory.size() > [1] 51620896 > >memory.limit() > [1] 267878400 > >melory.limit(1200) > NULL > Error: cannot allocate vector of size 1017272kb. >Does any of you have any idea how can I solve this problem? Sorry for bothering you during Holiday. Thanks, Chris -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Perhaps you can start posting your problem in this list with a more detailed explanation of the R's version you have, platform you use, and very important in the e-mail subject. Regarding the memory, its limit has been extended in the 1.6.0/1.6.1 versions. Also, perhaps betwen putting your data in a data.frame (I presume) and the moment you generate your linear model, you have variables that are using momory space unnecessary, try to remove them. Finally, rather than using the entire data set, you can start doing some exploratory analysis with a sample of your population. Check sample() for that. Regards, Carlos. -----Mensaje original----- De: owner-r-help at stat.math.ethz.ch [mailto:owner-r-help at stat.math.ethz.ch]En nombre de Chris Yoo Enviado el: mi?rcoles, 27 de noviembre de 2002 16:22 Para: r-help at stat.math.ethz.ch Asunto: [R] Date: Wed, 27 Nov 2002 09:23:31 -0600 Dear all: I am another R-beginner in the state. I have tried to analyze a large data (3,600 kb as csv format) set with R. When I type lm(x~y), it says> ===> Error: cannot allocate vector of size 1017272 kb. > In addition: Warning message: > Reached total allocation of 255MB: see help(memory.size) > ===> So, I tried the following. > >memory.size() > [1] 51620896 > >memory.limit() > [1] 267878400 > >melory.limit(1200) > NULL > Error: cannot allocate vector of size 1017272kb. >Does any of you have any idea how can I solve this problem? Sorry for bothering you during Holiday. Thanks, Chris -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
As for the R memory problem I posted, I discussed it with a consultant but we could not find solution. Can anyone possibly answer this question? As I told you briefly, I have a large data set (1017 Mb and about3,600 kb in csv format). The data contains 14,013 rows (observation) and 44 columns. I am using Dell Notebook I8000 (got it last year). It has 251,600 KB RAM and C-drive where R folder is attached has 13.5GB free space. I am able to read the data but whenever I try the following, I got error message.> test <- lm(d.tdc2~d.mktval) >Error: cannot allocate vector of size 1017272 Kb >In addition: Warning message: >Reached total allocation of 1000Mb: see help(memory.size) >>I even tried to increase memory assigned by doing> memory.limit(2000)NULL> test <- lm(d.tdc2~d.mktval)Error: cannot allocate vector of size 1017272 Kb> memory.limit(3000)NULL> test <- lm(d.tdc2~d.mktval)Error: cannot allocate vector of size 1017272 Kb>I also tried TARGET C:\R\rw1061\bin\Rgui.exe --max-mem-size=2G Thanks a lot, Chris -----Original Message-----