Determines if the SpatialPolygonsDataFrame is grouped. If ungrouped, function will group duplicated values based on the provided unique identifier.
If sumColumns
is NULL and there are multiple rows that aren't
duplicated but have the same uniqueID
, the original
SpatialPolygonsDataFrame will be returned.
organizePolygons(SPDF, uniqueID, sumColumns = NULL)
SpatialPolygonsDataFrame composed of grouped polygons.
Object of class SpatialPolygonsDataFrame.
Unique identifier to determine which values are duplicated.
Vector of column names to be summed.