Skip to content

nngeo

k-Nearest Neighbor Join for Spatial Data

v0.4.8 · Apr 17, 2024 · MIT + file LICENSE

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.

Downloads

1.6K

Last 30 days

3060th

5.7K

Last 90 days

36.2K

Last year

Trend: -10.7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (6)

suggests

Dependency Network

Dependencies Reverse dependencies sf nabor units data.table flexurba gps.track starsExtra nswgeo od simodels nngeo

Version History

new 0.4.8 Mar 10, 2026
updated 0.4.8 ← 0.4.7 diff Apr 16, 2024
updated 0.4.7 ← 0.4.6 diff Apr 23, 2023
updated 0.4.6 ← 0.4.5 diff May 28, 2022
updated 0.4.5 ← 0.4.4 diff Jan 12, 2022
updated 0.4.4 ← 0.4.3 diff Sep 5, 2021
updated 0.4.3 ← 0.4.2 diff Jun 12, 2021
updated 0.4.2 ← 0.4.1 diff Mar 14, 2021
updated 0.4.1 ← 0.4.0 diff Jan 6, 2021
updated 0.4.0 ← 0.3.9 diff Oct 17, 2020
updated 0.3.9 ← 0.3.8 diff Aug 10, 2020
updated 0.3.8 ← 0.3.7 diff Jun 9, 2020
updated 0.3.7 ← 0.3.4 diff Apr 3, 2020
updated 0.3.4 ← 0.3.0 diff Feb 2, 2020
updated 0.3.0 ← 0.2.9 diff Dec 2, 2019
updated 0.2.9 ← 0.2.8 diff Aug 6, 2019
updated 0.2.8 ← 0.2.7 diff May 11, 2019
updated 0.2.7 ← 0.2.4 diff Mar 11, 2019
updated 0.2.4 ← 0.2.2 diff Dec 5, 2018
updated 0.2.2 ← 0.2.1 diff Sep 28, 2018