gaps function

Find gaps between polygons

Find gaps between polygons

Get the gaps between polygons of a SpatVector methods

## S4 method for signature 'SpatVector' gaps(x)

Arguments

  • x: SpatVector

Returns

SpatVector

See Also

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

Examples

f <- system.file("ex/lux.shp", package="terra") v <- vect(f) h <- convHull(v[-12], "NAME_1") g <- gaps(h)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-04-02