How can I get around memory problems in R? -
i'm applying function image(cp) gps data when throws following error
error in image(as(x, "spatialgriddataframe"), ...) : error in evaluating argument 'x' in selecting method function 'image': error: cannot allocate vector of size 12.3 mb
the spatialpointsdataframe of relocation gps data has 2 columns. 1 coordinates, other id of animal.
i'm running on 32 bit system 4 gigs of ram.
how around this?
one way might work no thinking required:
library(raster) r <- raster(cp) image(r)
but, cp
"gps data" it's not @ clear why imageable.
one thing can plot it:
plot(cp)
that work spatialpointsdataframe
. if want create image somehow you'll need specify details.
Comments
Post a Comment