Learn R Programming

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

nngeo (version 0.4.6)

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 code from 'GeographicLib' for lon-lat point layers, (2) function knn() from package 'nabor' for projected point layers, or (3) function st_distance() from package 'sf' for line or polygon layers. The package also includes several other utility functions for spatial analysis.

Copy Link

Version

Install

install.packages('nngeo')

Monthly Downloads

2,068

Version

0.4.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Dorman

Last Published

May 29th, 2022

Functions in nngeo (0.4.6)

st_remove_holes

Remove polygon holes
st_postgis

Send 'sf' layer to a PostGIS query
line

Sample network dataset: lines
cities

Point layer of the three largest cities in Israel
pnt

Sample network dataset: points
st_azimuth

Calculate the azimuth between pairs of points
water

Polygonal layer of water bodies in Israel
st_connect

Create lines between features of two layers
st_segments

Split polygons or lines to segments
st_ellipse

Calculate ellipse polygon
st_nn

Nearest Neighbor Search for Simple Features
towns

Point layer of towns in Israel
nngeo-package

nngeo: k-Nearest Neighbor Join for Spatial Data