View source: R/MazamaSpatialUtils.R
dissolve | R Documentation |
Aggregate shapes in a simple features dataframe. This is a
convenience wrapper for ms_dissolve
.
dissolve(SFDF, field = NULL, sum_fields = NULL, copy_fields = NULL, ...)
SFDF |
Object of class simple features data frame. |
field |
Name of the field to dissolve on. |
sum_fields |
Names of fields to sum. |
copy_fields |
Names of fields to copy. The first instance of each field will be copied to the aggregated feature |
... |
arguments passed to |
A simple features dataframe with aggregated shapes.
regions <- dissolve(SimpleCountries, field = "UN_region", sum_fields = "area")
plot(regions)
dplyr::glimpse(regions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.