dissolve_sf_by_attribute | R Documentation |
Dissolve an SF object by attribute
dissolve_sf_by_attribute(x, by = character(0))
x |
(sf::sf object) SF object to dissolve |
by |
( |
Inspired by spatialEco::sf_dissolve
Dissolved sf::sf object
## Not run:
communes_sf <- sf::st_read(system.file("extdata/Benin_communes.gpkg", package = "mbg"))
departments_sf <- mbg::dissolve_sf_by_attribute(
x = communes_sf,
by = c('department', 'department_code')
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.