symdif function

Symmetrical difference

Symmetrical difference

Symmetrical difference of polygons methods

## S4 method for signature 'SpatVector,SpatVector' symdif(x, y)

Arguments

  • x: SpatVector
  • y: SpatVector

Returns

SpatVector

See Also

erase

Examples

p <- vect(system.file("ex/lux.shp", package="terra")) b <- as.polygons(ext(6, 6.4, 49.75, 50)) #sd <- symdif(p, b) #plot(sd, col=rainbow(12))
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26