Re: [R] Error in vector("double", length) : vector size specified is too large....VLDs

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 16 Sep 2005 - 05:08:02 EST

"Tom Colson" <tom_colson@ncsu.edu> writes:

>
> > rm(data1)
> > variog.1.b <- variog(raw.data)
> variog: computing omnidirectional variogram
> Error in vector("double", length) : vector size specified is too large
>
> Turns out I was wrong re: # of rows...it's 304,000
>
>
> Same problem. Version is 2.1.1, hardware is Dual Xeon 3.6 4 GB RAM, XP Pro
> 64 Bit. Can reproduce the problem with 64Bit R 2.1.1 running on Fedora 4,
> same hardware.
>

Variograms involve the differences between all pairs of points which can become a rather large number of values. 304000*303999/2 in your case, about 344GB by my reckoning. And the distances between them makes for a similar quantity.

Now, some algorithms may be smarter than to keep all values in memory, but you haven't even told us where you got the variog() from. It doesn't seem to be in the standard packages, although we do have variogram() and Variogram() in spatial and nlme.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@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
Received on Wed Sep 21 02:34:00 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:16 EST