Learn R Programming

terra (version 1.7-55)

gaps: Find gaps between polygons

Description

Get the gaps between polygons of a SpatVector

Usage

# S4 method for SpatVector
gaps(x)

Value

SpatVector

Arguments

x

SpatVector

See Also

sharedPaths, topology, and fillHoles to get or remove polygon holes

Examples

Run this code
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
h <- convHull(v[-12], "NAME_1")
g <- gaps(h)

Run the code above in your browser using DataLab