Returns a SpatialPolygonsDataFrame for world divisions
convertTMWorldBorders(nameOnly = FALSE, simplify = TRUE)
Name of the dataset being created.
Logical specifying whether to only return the name without creating the file.
Logical specifying whether to create "_05", _02" and "_01" versions of the file that are simplified to 5%, 2% and 1%.
A world borders shapefile is downloaded and converted to a
SpatialPolygonsDataFrame with additional columns of data. The resulting file is
created in the spatial data directory which is set with setSpatialDataDir()
.
setSpatialDataDir
getCountry, getCountryCode