GADMTools (version 3.8-1)

gadm_union: Merges regions

Description

This function merges regions by removing common borders.

Usage

gadm_union(x, level = 0, type = "?")

gadm.union(x, level = 0, type = "?") # deprecated

Arguments

x

Object gadm_sf or gadm_sp containing regions.

level

integer level @ union is procesed. For gadm_sf objects only. For gadm_sp objects, union is processed on the whole map.

type

character alternative name.

Value

Object same as input, gadm_sf or gadm_sp

Examples

Run this code
# NOT RUN {
library(GADMTools)
data("Corsica")

plotmap(Corsica)

Corse <- gadm_union(Corsica, level=2)
plotmap(Corse)
# }

Run the code above in your browser using DataCamp Workspace