[R-sig-Geo] Fall into which voronoi? (Follow Up)

Roger Bivand Roger.Bivand at nhh.no
Wed Jun 20 09:42:37 CEST 2007


On Mon, 18 Jun 2007, Kitty Lee wrote:

> Just want to follow up from my earlier post....

This is overlay() in the sp package for SpatialPolygons and SpatialPoints, 
and you will need to use the deldir package to provide polygons of bounded 
rather than infinite area - see the thread refered to here:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/96588.html

Roger

>
> Since the voronoi polygon layer and the point layer share the same study 
> area, is there a way to do a 'spatial joint' such that I can find out 
> the points fall into which polygon?
>
> And to have a dataset like the following:
>
> Caseid xc yc voronoi.polygon
> 1    -114.18   34.23        1
> 2  -114.25   34.25        1
> 3 -114.33   34.55        2
> 4 -114.49   34.56        3
>
> Thanks again!!!
>
> K.
>
>
> ---------------------------------
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list