Do an arbitrary set of operations on a polygon

polygonClean(poly, fn = NULL, type = NULL, ...)

Arguments

poly

A polygon object, or a character string identifying the shapefile path to load, and clean.

fn

A function identifying the type of cleaning to do.

type

If fn is not known, an character string can be specified to identify which fn to use. This MUST be a known type for this function.

...

Passed to fn