An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100917/4e77808d/attachment.pl>
object of SpatialPolygonsDataFrame from several objects of the class
2 messages · Berta Ibáñez, Roger Bivand
On Fri, 17 Sep 2010, Berta Ib??ez wrote:
Dear R-users, I am trying to built a shp file of the class SpatialPolygonsDataFrame using several shps. After handling the objects, I have 20 objects of the class SpatialPolygonsDataFrame (some are SpatialPolygons only) and I want to built one object (one shp) that is the result of gathering all shps but conserving the borders (that is, I cannot use unionSpatialPolygons). I want to plot the final objetc in a given order, so that if I am able to convert it in a spatialpolygondataframe, I guess I can use slot(globalshp,"plotOrder").
No, avoid using internal slots unless you know what you are doing. See spRbind() methods in maptools, and use it sequentially, after making sure that the row.names() of the objects to be combined are not duplicated (they must be unique in the combined object). Hope this helps, Roger
Thanks a lot in advance, Berta [[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