Re: [R] Raster extract by polygon generating NAs

2018-05-16 Thread Bert Gunter
Better posted on the r-sig-geo list, I think. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, May 16, 2018 at 8:11 AM, Joao Carreiras wrote: >

[R] Raster extract by polygon generating NAs

2018-05-16 Thread Joao Carreiras
Greetings! I'm using the extract command (raster package) with a raster layer (x) and a spatial polygons dataframe (y). I'm using it to extract the sum of raster values by each spatial polygon. However, I'm getting NAs as a result for some polygon IDs, which I know isn't true because that doesn't