gadm_remove: Remove one or more regions from a map

Description Usage Arguments Value Author(s) See Also Examples

Description

Remove the polygons of one or more regions from a map.

Usage

1
2
3
   gadm_remove(x, level=NULL, regions=NULL)

   gadm.remove(x, level=NULL, regions=NULL) # deprecated

Arguments

x

Object gadm_sf or gadm_sp

level

Integer - level from which shapes are removed. If NULL, curent level is used.

regions

String - vector of regions to be removed

Value

Object - As input object, gadm_sf or gadm_sp.

Author(s)

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

See Also

listNames

Examples

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

HCorse <- gadm_remove(Corsica, level=2, "Corse-du-Sud")
plotmap(HCorse)

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