A SpatialPolygonsDataFrame file is downloaded from the Database of Global Administrative Areas (GADM) database with
additional columns of data added. The resulting file will be created in the spatial data
directory which is set with setSpatialDataDir()
. Dataset and file names are generated like this:
paste0('gadm_', countryCode, '_', admLevel)
Level 0 will return the national outline. Level 1 will give state/province boundaries. etc.