Remove holes from an object of class Polygon
object of class Polygon or Polygons
polygon without and Polygons with holes
Borrowed the idea from the wild1 package, which I wasn't able to load for R 3.2.2, so I found the source code here: https://github.com/cran/wild1/blob/master/R/remove.holes.r
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.