You bet! Package called raster is what you're looking for. It also comes
with an excellent vignette. You may be especially interested in
rasterizefunction and its argument
mask. This will find raster values in your polygons. Calculating the mean is
trivial (nicely demonstrated in the aforementioned vignette).

Cheers,
Roman



On Fri, Feb 11, 2011 at 4:45 PM, Mikaela Keller <mikaela.keller@inria.fr>wrote:

> Hi everyone,
>
> I have a raster file over a certain region and a shapefile containing a
> list of polygons (> 2000) in that same region. I would like to get the mean
> value of the raster in each of the polygons.
> Is there an easy way to do that using R?
> Thank you in advance.
> Regards,
>
> MK
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

