powered by
With subset you can extract one or more regions from a country at the current level.
gadm_subset(x, level = NULL, regions = NULL, usevar = NULL) gadm.subset(x, level = NULL, regions = NULL, usevar = NULL) # deprecated
gadm.subset(x, level = NULL, regions = NULL, usevar = NULL) # deprecated
Object gadm_sf or gadm_sp
Integer the level at which the regions are extracted from
character vector of named regions
character name of an other var of the internal dataset of map
Object As input object, gadm_sf or gadm_sp
listNames
# NOT RUN { library(GADMTools) data("Corsica") Calvi <- gadm_subset(Corsica, 4, "Calvi") plotmap(Calvi) # }
Run the code above in your browser using DataLab