Skip to content

Instantly share code, notes, and snippets.


Pachamaltese pachamaltese

View GitHub Profile
pachamaltese / neighbors.R
Last active Sep 13, 2017 — forked from andrewheiss/neighbors.R
Calculate which countries share a border
View neighbors.R
# Adapted from
# Map libraries
# You must install geos ( and
# gdal ( first.
# OS X: `brew install geos gdal`
# Ubuntu: sudo apt-get install libgeos-dev libgdal-dev libproj-dev
# Then install these packages from source
# install.packages(c("rgeos", "rgdal"), type="source")