Create a SpatialPolygonsDataFrame for Global Administrative Areas.
convertGADM(
countryCode = NULL,
admLevel = 0,
nameOnly = FALSE,
baseUrl = "https://biogeo.ucdavis.edu/data/gadm3.6/Rsp"
)Name of the dataset being created.
ISO-3166-1 alpha-2 country code
administrative level to be downloaded
Logical specifying whether to only return the name without creating the file.
Base URL for data queries.
A pre-generated Global Administrative Areas SpatialPolygonsDataFrame
is downloaded and amended with additional columns of data. The resulting file
will be created in the spatial data directory which is set with
setSpatialDataDir().
The @data slot of each SpatialPolygonsDataFrame is both simplified and
modified to adhere to the MazamaSpatialUtils internal standards.