Crandore Hub

nngeo

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 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.

Versions across snapshots

VersionRepositoryFileSize
0.4.8 2026-04-09 windows/windows R-4.5 nngeo_0.4.8.zip 509.3 KiB

Dependencies (latest)

Depends

  • sf (>= 0.6)

Imports

Suggests