Skip to content
Prev 9457 / 29559 Next

Error with function kfold in package dismo

Manuel,

This looks like a bug in 'raster' that I think I have fixed in version
1.5-13 (should be available on R-Forge in 24 hrs or so).

As a work around, you can save ascii files to binary (once):

predictores <- writeRaster(predictores, 'predictores.grd' )
# or
predictores <- writeRaster(predictores, 'predictores.tif' )

and then in the script use:

predictores <- brick('predictores.grd')
# or
predictores <- brick('predictores.tif')


This also has the advantage of being much faster.

Robert
On Sat, Oct 2, 2010 at 3:11 PM, Manuel Sp?nola <mspinola10 at gmail.com> wrote: