Description Usage Arguments Value Author(s) See Also
Aggregate ('dissolve') method for SpatialPolygons to merge polygons if the values of selected variables are the same.
1 2 |
x |
SpatialPolygons* object |
vars |
Character or integer. The variables (column names or numbers) that should be used to aggregate (dissolve) the SpatialPolygons by only maintaining unique combinations of these variables. The default setting is to use no variables and aggregate all polygons. You can also supply a vector with a length of length(row.names(x)) |
sums |
List with function(s) and variable(s) to summarize. This should be a list of lists in which each element of the main lists has two items. The first item is function (e.g. mean), the second element is a vector of column names (or indices) that need to summarize with that function. Be careful with character and factor variables (you can use, e.g. 'first' |
... |
Additional arguments (none implemented) |
SpatialPolygons*
Robert J. Hijmans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.