| rsaga_erase | R Documentation | 
This function erase one geometry from another. The projection must be identical.
rsaga_erase(x, y, method = "1", split = "0", attributes = "1", env.rsaga = RSAGA::rsaga.env(), check.geom = TRUE, quiet = TRUE)
x | 
 object of class sf. First element: Should be either line or polygon  | 
y | 
 object of class sf. Second element: Always polygon.  | 
method | 
 method of erase. Either "1": , or "2": Line-Polygon Intersection. Default: "1"  | 
split | 
 Set to "1", if multi-part polygons should be splitted to single-part polygons. Default: "0"  | 
attributes | 
 attributes inherited to intersection result. [0] polygon, [1] line, [2] line and polygon. Default: "1"  | 
env.rsaga | 
 SAGA GIS environemnt. Default: RSAGA::rsaga.env()  | 
check.geom | 
 If set to TRUE then geometry is checked with sf::st_is_valid(). If there are invalid geometries, geometries are repaired using lwgeom::st_make_valid(). Default: TRUE  | 
Geometry of class sfc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.