[R-sig-Geo] merging sp objects

David Hugh-Jones davidhughjones at gmail.com
Tue Jul 1 20:33:39 CEST 2008


OK, writing http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data:merging,
a question comes up:

I am trying to rbind() two SpatialLines (or SpatialPolygons or
whatever) objects and I keep getting the error that they have
overlapping IDs - not surprisingly as they were independently created.
Is there a simple way to give new IDs to these objects, and to know
how many I have to give?

David Hugh-Jones
PhD Candidate
Essex University Department of Government
http://davidhughjones.googlepages.com




More information about the R-sig-Geo mailing list