Learn R Programming

⚠️There's a newer version (0.4.8) of this package.Take me there.

nngeo (version 0.2.4)

k-Nearest Neighbor Join for Spatial Data

Description

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.

Copy Link

Version

Install

install.packages('nngeo')

Monthly Downloads

1,791

Version

0.2.4

License

MIT + file LICENSE

Maintainer

Michael Dorman

Last Published

December 6th, 2018

Functions in nngeo (0.2.4)

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