[R] cannot allocate vector of size 1215000 Kb

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Oct 18 11:39:16 CEST 2006



John Kapsomenakis wrote:
> Dear All,
> I'm running the latest R on SUSE 10.0. After read in a huge data CDF file 
> I tried to  process the only variable variable using the comands
> 
> aek<-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF')
> v1<-aek$var[[1]]
> gugus<-get.var.ncdf(aek, v1)
> 
> But I can't because of this message
> Error: cannot allocate vector of size 1215000 Kb
> 
> I'm now hoping for some help
> Any tips to get out of it?


No, unless you are moving into a huge 64-bit machine or using databases 
and working on subsets. R request 1.2Gb of RAM just for the very next 
step in get.var.ncdf()!
You should probably reduce the data and work on subsets.

Uwe Ligges


> Thanks in advance.
> john
> 
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list