[R-sig-Geo] problem in weigths of the extract function
Daniel Varajão de Latorre
danielvdelatorre at gmail.com
Thu Mar 12 23:05:37 CET 2015
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]]
More information about the R-sig-Geo
mailing list