•   over 11 years ago

INFO: Geographic files

If anyone is looking for spatial files at the various administrative levels of aggregation, GADM maintains them well in various file formats: http://www.gadm.org/.

As an example, the shapefiles can be loaded into R using code like this:

library(rgdal)

# If shapefiles saved in a subfolder "shapefiles" of your working directory:

setwd("XXX")
lbr1 <- readOGR(dsn=paste(getwd(), "/shapefiles", sep=""), layer="SLE_adm1")
summary(lbr1)
plot(lbr1)

Comments are closed.