Skip to content
Prev 24187 / 29559 Next

generating object with multiple polygons

Karla--
If you want a SpatialPolygonsDataFrame with both slices of polygons, you
can use spatial rbind.  The issue that may trip you up is that your slice1
and slice2 objects might not have unique polygon IDs.  Perhaps the simplest
solution is to use the spChFIDs in sp, with some prefix distinguishing
slice1 from slice2.  I assume you're generating some attributes as
variables in the data frame to distinguish the different polygons; you can
use those values as the prefix.  You can google this, or start with:
http://www.inside-r.org/packages/cran/sp/docs/as.data.frame.SpatialPolygonsDataFrame
http://gis.stackexchange.com/questions/32732/proper-way-to-rbind-spatialpolygonsdataframes-with-identical-polygon-ids

Tom 2
On Sun, Apr 3, 2016 at 6:53 AM, Karla Shikev <karlashikev at gmail.com> wrote: