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
# 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") |