Skip to content

memory allocation

4 messages · Massimiliano Copetti, Marta Rufino, Brian Ripley +1 more

#
Dear sirs,

I'm using the Splancs package to compute standard errors of the estimates of a 
spatio-temporal k function.
When I use as spatial and temporal distances too long vectors (respectively 60 
and 80 entries) for a dataset of 1000 observations, R gives me the message

Error: cannot allocate vector of size 180000 Kb

Reached total allocation of 512 Mb.

I ran the function memory.size() and obtained 392000000 more or less.

Can anyone help me? 

Thanks in advance.

Massimiliano Copetti
#
Dear colegues,

Is there any function in R for calculating the four coefficients of each
harmonic in fourier analysis, from a set of x,y coordinates is given? Is it
possible to do Fourier analysis?
Has anyone done contour analysis using R?

Any help wil be apretiated,

Thank you very much,
All the best,
Marta
#
There is more to that message you have not reproduced.

I am pretty sure you are on Windows, and you need to read the rw-FAQ (as 
the posting guide asks you too).  See Q2.7.
On Tue, 16 Nov 2004, Massimiliano Copetti wrote:

            
Yes, but see its help page for the relevant usage.
#
On Tue, 16 Nov 2004, Massimiliano Copetti wrote:

            
The memory demands arise in stvmat() called inside stsecal(), in which an 
(s*tm)*(s*tm) numeric matrix is allocated, described in the code as a 
"full spacetime variance/covariance matrix", and which is necessarily 
large. In your case 23040000 elements are used of 8 bytes each, so to do 
this in the way you describe you need more RAM - the matrix may be copied 
as well. The authors of the package and the underlying method did not 
anticipate needing this high degree of spatial and temporal resolution.

Roger Bivand