gadm_union: Merges regions

Description Usage Arguments Value Note Author(s) Examples

Description

This function merges regions by removing common borders.

Usage

1
2
3
   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

Note

gadm.union() is deprecated, it will be removed in the next release. Please use gadm_union()

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

Examples

1
2
3
4
5
6
7
library(GADMTools)
data("Corsica")

plotmap(Corsica)

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

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.