[R] Once again: Error: cannot allocate vector of size
Matthew Dowle
mdowle at mdowle.plus.com
Fri Jan 22 17:33:05 CET 2010
Fantastic. You're much more likely to get a response now. Best of luck.
"werner w" <pensterfuzzer at yahoo.de> wrote in message
news:1264175935970-1100164.post at n4.nabble.com...
>
> Thanks Matthew, you are absolutely right.
>
> I am working on Windows XP SP2 32bit with R versions 2.9.1.
>
> Here is an example:
> d <- as.data.frame(matrix(trunc(rnorm(6*27136, 10000, 100)),ncol=6))
> d[,4:5] <- trunc(100*runif(2*27136, 0, 1))
> d[,6] <- trunc(1000*runif(27136, 0, 1))
> for (i in 4:6) d[,i] <- as.factor(d[,i])
> lm(V1 ~ log(V2) + log(V3) + V4 + V5 + V6, data=d)
> memory.size(max=F)
> memory.size(max=T)
>
> I managed to get it run through after setting the 3GB switch for Windows
> and
> with a clean R session.
> I also noticed later, that after removing na.action=na.exclude more
> regressions run through.
>
> But before and after the lm() it seems there should be enough memory which
> means that lm() builds up some quite large objects during its
> computations?
> --
> View this message in context:
> http://n4.nabble.com/Once-again-Error-cannot-allocate-vector-of-size-tp1083506p1100164.html
> Sent from the R help mailing list archive at Nabble.com.
>
More information about the R-help
mailing list