dissolve: Dissolve polygons according to unique identities

View source: R/spatial_manipulation.R

dissolveR Documentation

Dissolve polygons according to unique identities

Description

For a spatial polygons data frame, return a spatial polygons data frame that contains only one observation for each unique identifier associated with the combined geometry of all polygons belonging to that identifier.

Usage

dissolve(polygons, dissolve_var)

Arguments

polygons

Spatial Polygons Data Frame. Must have at least the variable matching the value of dissolve_var.

dissolve_var

Character string. Must match the name of the variable in polygons@data that contains the unique identifiers to dissolve along.

Value

Spatial polygons data frame containing only the variable named in dissolve_var and only one observation per value in that variable.


nstauffer/aim.analysis documentation built on Nov. 2, 2023, 12:52 a.m.