nngeo v0.2.4


Monthly downloads



k-Nearest Neighbor Join for Spatial Data

K-nearest neighbor search for projected and non-projected 'sf' spatial layers. Nearest neighbor search uses (1) C implementation of the Vincenty Formula for lon-lat point layers, (2) function nn2() from package 'RANN' for projected point layers, or (3) function st_distance() from package 'sf' for line or polygon layers.

Functions in nngeo

Name Description
st_remove_holes Remove polygon holes
st_nn Nearest Neighbor Search for Simple Features
st_ellipse Calculate ellipse polygon
cities Point layer of the three largest cities in Israel
towns Point layer of towns in Israel
water Polygonal layer of water bodies in Israel
st_connect Create lines between features of two layers
No Results!

Vignettes of nngeo

No Results!

Last month downloads


Type Package
License MIT + file LICENSE
LazyData TRUE
RoxygenNote 6.1.0
VignetteBuilder knitr
BugReports https://github.com/michaeldorman/nngeo/issues
LinkingTo Rcpp
Encoding UTF-8
NeedsCompilation yes
Packaged 2018-12-06 14:58:44 UTC; michael
Repository CRAN
Date/Publication 2018-12-06 15:20:02 UTC

Include our badge in your README