Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Pachamaltese pachamaltese

🎯
Focusing
Block or report user

Report or block pachamaltese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pachamaltese
pachamaltese / neighbors.R
Last active Sep 13, 2017 — forked from andrewheiss/neighbors.R
Calculate which countries share a border
View neighbors.R
# Adapted from https://gist.githubusercontent.com/andrewheiss/926b9d60a26e29f6bf32/raw/a09ecbca4613381a782b93e8aeaa4132016205b7/neighbors.R
# Map libraries
# You must install geos (http://trac.osgeo.org/geos/) and
# gdal (http://www.gdal.org/) 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")
You can’t perform that action at this time.