[R] Error: cannot allocate vector of size xxx

Paul Hiemstra paul.hiemstra at knmi.nl
Thu Sep 22 09:07:09 CEST 2011


 On 09/22/2011 04:00 AM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
> Are you running a 32bit or 64bit version of R? Type sessionInfo() to see. 
>
> Michael

...in addition, how large is your dataset? Please provide us with a self
contained example which reproduces this problem. You could take a look
at the biglm package.

regards,
Paul

> On Sep 21, 2011, at 10:41 PM, Mario Montecinos Carvajal <mariomontecinos at gmail.com> wrote:
>
>> Hi
>>
>> I am a new user of the mail list.
>>
>> Mi problem occurs when I try to test a lineal model (lm), becouse appear the
>> messaje "Error: cannot allocate vector of size xxx"
>>
>> The data frame whit I am working, Have
>>
>>> dim(d)
>> [1] 70174    11
>>
>> and the function i am test is:
>>
>> lm(length~as.factor(age)*as.factor(year)*as.factor(sex)*soi*k,data=d[d$age
>> %in% minage:maxage,])
>>
>> I tried with a diferent options for solve this problem, but any one give me
>> results.
>>
>> I tried with:
>>
>> Change in Function: memory.limit(size=4000)
>>
>> Change the setting in Windows using  BCDEdit /set
>>
>> Change in the memory availability for R, change the path of the program
>> (suggested for other user)
>>
>> My computer have 4GB RAM, Have 20 GB of Virtual Memory, HDD 300 GB with 200
>> GB of free space and Windows 7 as OS and my R version is 2.11.1
>>
>> I need solve this problem, any help or suggestion will be very well
>> received.
>>
>> I've been thinking in change the OS, but this is may last option.
>>
>> Regards
>>
>> I read
>>
>>
>> -- 
>> Mario Montecinos C.
>> Biologo Marino
>> Dr (c) en Ciencias
>> Universidad Austral de Chile
>>
>>
>> Los acentos han sido omitidos voluntariamente para evitar incompatibilidades
>> Evite enviar cartas impresas, cuidemos el medio ambiente y evitemos el
>> uso innecesario de papel.
>>
>>    [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
Paul Hiemstra, Ph.D.
Global Climate Division
Royal Netherlands Meteorological Institute (KNMI)
Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39
P.O. Box 201 | 3730 AE | De Bilt
tel: +31 30 2206 494

http://intamap.geo.uu.nl/~paul
http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770



More information about the R-help mailing list