Learn R Programming

bcmaps (version 1.2.0)

self_union: Union a SpatialPolygons* object with itself to remove overlaps, while retaining attributes

Description

[Deprecated]

This function is deprecated as of bcmaps 1.2.0, and will be removed in Summer 2023. Use raster::union() for SpatialPolygonsDataFrames, or sf::st_union() with sf objects instead.

The IDs of source polygons are stored in a list-column called union_ids, and original attributes (if present) are stored as nested dataframes in a list-column called union_df.

Usage

self_union(x)

Value

A SpatialPolygons or SpatialPolygonsDataFrame object

Arguments

x

A SpatialPolygons or SpatialPolygonsDataFrame object