Check if the first and last coordinates of a coordinate matrix are identical.
isClosed(coords)
coords
numeric coordinate matrix. It is interpreted by xy.coords.
xy.coords
logical