Learn R Programming

APfun (version 0.1.6)

APpolyMerge: Merge polygons

Description

Take a List of SpatialPolygonsDataFrame objects and merge them. This function automates the process of assigning new polygon IDs, which is usually the issue that prevents merging.

Usage

APpolyMerge(polyList, newID = FALSE)

Arguments

polyList

List. a List of SpatialPolygonsDataFrame objects

newID

logical. If TRUE, the polygon IDs in polyList will be replaced to prevent duplicate IDs.

Value

A merged SpatialPolygonsDataFrame