isClosed function

Check if Polygon is Closed

Check if Polygon is Closed

Check if the first and last coordinates of a coordinate matrix are identical.

isClosed(coords)

Arguments

  • coords: numeric coordinate matrix. It is interpreted by xy.coords.

Returns

logical

  • Maintainer: Sebastian Meyer
  • License: GPL-2
  • Last published: 2025-02-11