| st_erase | R Documentation | 
An extended version of sf::st_difference that uses the flip parameter to
optionally call sf::st_intersection and combines and unions the second
object by default. st_trim is st_erase with flip set to TRUE.
st_erase(x, y, flip = FALSE, union = TRUE) st_trim(x, y, union = TRUE)
x, y | 
 sf objects  | 
flip | 
 If   | 
union | 
 If   | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.