I have a raster image and a corresponding shapefile. I would like to calculate the statistics of the values within polygons which have a common attribute but only using pixels which are fully contained in the polygons.
I would like to do this in R, however I have so far only managed to load the image and shapefile using readGDAl and readOGR respectively!
rasterpackage? Specifically the functionextract? – Curlew Oct 28 '13 at 10:05rasterobject beforehand for instance with functionraster(...). – Curlew Oct 28 '13 at 10:52