[R-sig-Geo] Spatial join using shapefiles with R

christiaan pauw cjpauw at gmail.com
Tue Jan 10 19:22:00 CET 2012


Hallo Jose

Make sure you have:
library(rgdal)
library(sp)

read:
help(readOGR)

on reading Shapefiles into R

and;

help(overlay)

for the point-in-polygon operation

regards
Christiaan

P.S Please post repoducible code if you want more advice. See the posting guide

On 10 January 2012 20:06, Jose Bustos Melo <jbustosmelo at yahoo.es> wrote:
> Hi everyone,
>
> Its have been very difficult to do an spatial join with R and I couldn't find any good manual about it. So, I will explain it if someone is willing to help.
>
> I have one Shapefile with poligons (with its number) and another Shapefile with xy points. My idea is to obtain the number of the polygons where the points are found, in order to obtain their social data of those polygons.
>
> How can I do it? Is there any good way to do it? Where can I find informationa bout it? Any function?
>
> Thanks in advance
> José
>
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Christiaan Pauw
Nova Institute
www.nova.org.za



More information about the R-sig-Geo mailing list