Learn R Programming

raster (version 1.9-58)

mergesp2: Spatially merge Spatial* objects

Description

Merge (append and intersect) SpatialPolygon* objects. Overlapping polygons are (by default) intersected, and tabular attributes are joined.

Usage

## S3 method for class 'SpatialPolygons,SpatialPolygons':
merge(x, y, ..., intersect=TRUE)

Arguments

x
SpatialPolygons* object
y
SpatialPolygons* object
...
Additional SpatialPolygons* objects
intersect
Logical. If FALSE, objects are appended, without intersecting

Value

  • SpatialPolygons*

See Also

The merge,Spatial,data.frame-method for merging a data.frame with attributes of Spatial objects The merge,Raster,Raster-method for merging Raster objects And +,SpatialPolygons,SpatialPolygons-method for an algebraic notation