Skip to content
Prev 3490 / 29559 Next

Memory limit problems in R / import of maps

On Tue, 22 Apr 2008, Roger Bivand wrote:

            
With a little tidying, spixdf2kasc() will run on 1GB for this 370MB 
SpatialGridDataFrame, taking just another 370MB by copying the data frame 
just once. If anyone would like a copy, please contact me off-line.

The kasc object is in fact just the SGDF data frame with the rows in 
reversed order, but since enfa() in adehabitat uses a kasc object, you 
probably need to go this way. Probably you'll be using gc() a good deal 
without a little more memory, though.

Getting the output out to an SGDF object ought to be possible too, ask 
about that later if need be.

Roger