Created
May 27, 2019 18:33
-
-
Save pbaylis/40043fc6c73a607084a36ee491ff602d to your computer and use it in GitHub Desktop.
Points in polygons with sf
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
points.shp <- points.shp[apply(sf::st_intersects(points.shp, polys), 1, any),] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to have the same projection, of course.