spRbind-methods

0th

Percentile

rbind for spatial objects

spRbind provides rbind-like methods for Spatial*DataFrame objects

Keywords
methods, spatial
Note

In addition to the spRbind-methods, there are also rbind-methods for Spatial* objects. The differences are:

  1. spRbind-methods can bind 2 objects, whereas rbind-methods can bind multiple object

  2. some rbind can accept objects with duplicated IDs, for all spRbind-methods these have to be modified explicitly, e.g. by calling spChFIDs-methods

Methods

obj = "SpatialPoints", x = "SpatialPoints"

rbind two SpatialPoints objects

obj = "SpatialPointsDataFrame", x = "SpatialPointsDataFrame"

rbind two SpatialPointsDataFrame objects

obj = "SpatialLines", x = "SpatialLines"

rbind two SpatialLines objects

obj = "SpatialLinesDataFrame", x = "SpatialLinesDataFrame"

rbind two SpatialLinesDataFrame objects

obj = "SpatialPolygons", x = "SpatialPolygons"

rbind two SpatialPolygons objects

obj = "SpatialPolygonsDataFrame", x = "SpatialPolygonsDataFrame"

rbind two SpatialPolygonsDataFrame objects

See Also

spChFIDs-methods, spCbind-methods

Aliases
  • spRbind-methods
  • spRbind,SpatialPoints,SpatialPoints-method
  • spRbind,SpatialPointsDataFrame,SpatialPointsDataFrame-method
  • spRbind,SpatialLines,SpatialLines-method
  • spRbind,SpatialLinesDataFrame,SpatialLinesDataFrame-method
  • spRbind,SpatialPolygons,SpatialPolygons-method
  • spRbind,SpatialPolygonsDataFrame,SpatialPolygonsDataFrame-method
  • spRbind
Examples
# NOT RUN {
xx <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1], 
  IDvar="FIPSNO", proj4string=CRS("+proj=longlat +ellps=clrk66"))
summary(xx)
xx$FIPSNO
xx1 <- xx[xx$CNTY_ID < 1982,]
xx2 <- xx[xx$CNTY_ID >= 1982,]
xx3 <- spRbind(xx2, xx1)
summary(xx3)
xx3$FIPSNO
# }
Documentation reproduced from package maptools, version 0.9-8, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.