This function merges flagged polygons into neighboring polygons with the longest shared border. It will prioritize neighboring polygons of the same type. See parameter descriptions for more details.
Arguments
- polygon_map
shapefile containing a column
flagof typestringwith labels for every polygon as either 'flagged' or 'ok'. Flagged polygons will be simplified.- type
character string of the name of the
typecolumn in your shapefile. Polygons of the same type will be prioritized for merging If you do not need this feature, simply set the type column to your ID column.- interactive
TRUE/FALSESetting this parameter to true will let you inspect the changes made.- verbose
print actions to console?
