terra (version 1.0-10)

symdif: Symetrical difference

Description

Symetrical difference of polygons

Usage

# S4 method for SpatVector,SpatVector
symdif(x, y, ...)

Arguments

x

SpatVector

y

SpatVector

...

Additional arguments. None implemented

Value

SpatVector

See Also

erase

Examples

Run this code
# NOT RUN {
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="red")
# }

Run the code above in your browser using DataCamp Workspace