Created
October 24, 2020 15:20
-
-
Save addiversitas/d08d86c8f1012be7ee85dc4eb260b79a to your computer and use it in GitHub Desktop.
loading the world borders data set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rgdal) | |
#you only have to do this once! | |
download.file("http://thematicmapping.org/downloads/TM_WORLD_BORDERS_SIMPL-0.3.zip" , destfile="world_shape_file.zip") | |
system("unzip world_shape_file.zip") | |
#loading the world borders spatial polygons data frame | |
world_spdf <- readOGR( | |
dsn= getwd() , | |
layer="TM_WORLD_BORDERS_SIMPL-0.3", | |
verbose=FALSE | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment