Created
July 12, 2019 19:00
-
-
Save pumphandle/0abfa2c1739a64af909af781320c1a74 to your computer and use it in GitHub Desktop.
Finds distance to nearest shoreline in the continental US
This file contains 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) | |
library(geosphere) | |
coast <- readOGR(dsn="shapefile path", layer="us_medium_shoreline") | |
dist2Line(c(-85,32),coast,distfun=distGeo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment