I want to do weighted area mean of raster cells included in buffered points,spatialpointsdataframe but from what I have noticed the extract function only includes raster cells having their cell centers inside the 7 meter buffer. Raster cell size is 12.5 meter. It would be great if the function could calculate a weighted area mean of all raster cells not just cells having their centers inside the buffer zone. Anyone have an idea how to solve this? Code looking like this:
means <- extract(Raster, SpatialPointsDataframe, method='simple', buffer=7,weights=TRUE, normalizeWeights=T, small=T, fun=mean, df=T) As an example this spatial point gets the value of one pixel with weighted mean 21
