[R] Raster extract by polygon generating NAs

Joao Carreiras j@c@rreir@@ @ending from @heffield@@c@uk
Wed May 16 17:11:41 CEST 2018


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 happen in ArcGIS.

Does anyone experienced the same issue?

Thanks!
Joao



More information about the R-help mailing list