[R] Isolate polygons unionSpatialPolygons / single polygon instead of multipart polygon

Alejandro Coca Castro acocac at gmail.com
Fri May 10 14:15:26 CEST 2013

Hi all, i used the function unionSpatialPolygons to dissolve polygons
according to an ID value. However, the results were not that i was
expecting. It created a SpatialPolygon and it grouped the objects according
to the ID value. i.e. one polygon had about 3 subpolygons with the same
value. How is the best way to create a new  SpatialPolygons with all
subpolygon as polygon and preserve their ID,

I share a screen shot where i selected one object and then i show the other
objects with the same ID value,

Also, i found a forum topic which has a similar issue,



*Alejandro Coca Castro***** ****
-------------- next part --------------
A non-text attachment was scrubbed...
Name: descarga.png
Type: image/png
Size: 26405 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130510/72c34efd/attachment.png>

More information about the R-help mailing list