symdif

0th

Percentile

Symetrical difference

Symetrical difference of SpatialPolygons* objects

Keywords
methods, spatial
Usage
# S4 method for SpatialPolygons,SpatialPolygons
symdif(x, y, ...)
Arguments
x

SpatialPolygons* object

y

SpatialPolygons* object

...

Additional SpatialPolygons* object(s)

Value

SpatialPolygons*

See Also

erase

Aliases
  • symdif
  • symdif,SpatialPolygons,SpatialPolygons-method
Examples
# NOT RUN {
#SpatialPolygons
if (require(rgdal) & require(rgeos)) {
	p <- shapefile(system.file("external/lux.shp", package="raster"))
	b <- as(extent(6, 6.4, 49.75, 50), 'SpatialPolygons')
	projection(b) <- projection(p)
	sd <- symdif(p, b)
	plot(sd, col='red')
}
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.