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

logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.