Dear list,

I recently upgraded the "raster" library and a script that used to run
perfectly gave me some mistakes. The problem was in the extract function:

r <- raster(nrows=180, ncols=360, xmn=-180, xmx=180, ymn=-90, ymx=90)
r[] <- 1
extract(x = r, y = world_map, weights=T, cellnumber=T)

I've tried different combinations of rasters and polygons and there were
mistakes with the weights output.

The solution I figured was to downgrade the package to the previous version
I was using (2.1-49), and everything is working again

Just thought this was something to share...

Best,
Daniel

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to