Skip to content

vegdist Error en double(N * (N - 1)/2) : tama?o del vector especificado es muy grande

3 messages · Carolina Bello, Philippi, Tom, Jari Oksanen

#
Dear Carolina Bello,

You asked this same thing in the general R mailing list, and Brian Ripley answered to you on Saturday. The essential things he told you were that you cannot do that with 32G of RAM, and that you should rethink your problem. All we can do here is to repeat his message, and Tom Philippi already did so. 

With N = 138037 you need 71G to store the result, and 32 G of RAM is too little. I don't know how much further you would get with vegan:::vegdist in R 3.0.0 but at least the error message will change to a Spanish version of "Error: cannot allocate vector of size 71.0 Gb". 

You really should re-think your problem. You need to use methods that can handle large data sets like that or  you need to thin your data. Your data are modelled? At least I find it difficult to believe that you really have observations on 89 species in 138037 grid cells in rugged terrain like the Andes. 

Cheers, Jari Oksanen
On 12/02/2013, at 00:15 AM, Carolina Bello wrote: