Learn R Programming

nngeo (version 0.4.8)

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

1,906

Version

0.4.8

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Dorman

Last Published

April 17th, 2024

Functions in nngeo (0.4.8)

nngeo-package

nngeo: k-Nearest Neighbor Join for Spatial Data
st_ellipse

Calculate ellipse polygon
st_connect

Create lines between features of two layers
st_nn

Nearest Neighbor Search for Simple Features
st_azimuth

Calculate the azimuth between pairs of points
st_postgis

Send 'sf' layer to a PostGIS query
st_remove_holes

Remove polygon holes
st_segments

Split polygons or lines to segments
cities

Point layer of the three largest cities in Israel
water

Polygonal layer of water bodies in Israel
towns

Point layer of towns in Israel
line

Sample network dataset: lines
pnt

Sample network dataset: points