powered by
This function merges regions by removing common borders.
gadm_union(x, level = 0, type = "?") gadm.union(x, level = 0, type = "?") # deprecated
gadm.union(x, level = 0, type = "?") # deprecated
Object gadm_sf or gadm_sp containing regions.
integer level @ union is procesed. For gadm_sf objects only. For gadm_sp objects, union is processed on the whole map.
character alternative name.
Object same as input, gadm_sf or gadm_sp
# NOT RUN { library(GADMTools) data("Corsica") plotmap(Corsica) Corse <- gadm_union(Corsica, level=2) plotmap(Corse) # }
Run the code above in your browser using DataLab