st_erase | R Documentation |
Analogous to QGIS' clip tool. This function is taken from sf documentation. Layers should be of the same class and projection
st_erase(x, y)
x |
an sf layer. This is the layer that you would like to remove from. |
y |
An sf polygon layer. This area that will be removed from polygon x. Obviously only areas that are overlapping will be removed |
z = x - y – where z is the resulting polygon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.