[R-sig-Geo] Cell Declustering

piero campa piero.campa at gmail.com
Wed Mar 23 10:39:38 CET 2011


"A quick and dirty answer would be to work with grids, and e.g. retain a
single value in each grid cell": that's what I would like to do, since my
points pattern is highly clustered.

I thought I could do something like:
> overlay(points, grid, fn=mean)
but looking at methods?sp::overlay it seems that only assignment of values
of a grid over points locations can be achieved, not the inverse.

Moreover:
> over(points, grid, fn=mean)
would be perfect, but it seems to consider only points that lay exactly on
the centre of the grid, while points within a cell (but not in the centre)
are not considered.

Any clue?
Cheers,
Piero

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Cell-Declustering-tp2763587p6199548.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list