Skip to content

nngeo

0.4.8Package record

k-Nearest Neighbor Join for Spatial Data

3packages dependsuggested by 3
24.6Kdownloads / year
39.4%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.4.8
  • Fixed error when using CRS where units can't be accessed through 'sf'

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.8
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.4.8Citation fileNoWebsiteYes · pkgdown
Help pages
13 (1 internal)includes a package overview page
Examples that run
92%11 run in a plain check · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
46%

Downloads

24.6K
CRAN downloads in the past year
Rank #3,037 · ~67/day · ~2K/mo
Daily download trend is not available in this view yet.
1.5K30 days
4.4K90 days
24.6K1 year
Compare downloads with other packages →
Also on506 r2u6 autocran

Repository

82Stars
11Forks
0Open issues
0Open PRs
0Releases
101Commits
9Commit identities
101 commits · Last activity 2024-04-17 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-05-31 · 812026-08-31 · 82
PracticesBeta

5 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/michaeldorman/nngeo on 2026-10-21.

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-04-17

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing nngeo adds 13 packages (11 with compiled code, 38 MB of source tarballs). Heaviest: BH 14 MB, sf 9.3 MB, data.table 5.7 MB.

Depends (2)
R >= 3.5.0sf
Imports (5)
naborunitsmethodsparalleldata.table
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
2indirect
Imports 3
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (9)
Author, Maintainer since 0.1.0 (2018)
Contributor · added in 0.4.4
Contributor, Copyright holder · added in 0.2.8
Author of included C code from 'GeographicLib' for geodesic distance
Contributor · added in 0.2.0
Contributor · added in 0.4.8
Contributor · added in 0.4.1
Contributor · added in 0.2.0
Contributor · added in 0.3.4
Contributor · added in 0.4.4
Listed in earlier versions (1)
Jan Antala
no longer listed · 0.1.5 to 0.2.7
Releases (24)

Pick two releases to compare their code metrics.

Show 18 earlier eventsHide 18 earlier events
  • 0.3.8
    record
    2020-06-10 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.7
    record
    2020-04-04 · diff ↗ ·
    removed 1 export
    focal2
    added 1 export
    st_azimuth
  • 0.3.4
    record
    2020-02-03 · diff ↗ ·
    removed 7 exports
    raster_aspect, raster_clump, raster_extend, raster_extract, raster_focal, raster_slope, raster_trim
    added 2 exports
    focal2, st_split_junctions
  • 0.3.0
    record
    2019-12-03 · diff ↗ ·
    added 1 export
    raster_extend
  • 0.2.9
    record
    2019-08-07 · diff ↗ ·
    added 6 exports
    raster_aspect, raster_clump, raster_extract, raster_focal, raster_slope, raster_trim
  • 0.2.8
    record
    2019-05-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.7
    record
    2019-03-12 · diff ↗ ·
    added 2 exports
    st_postgis, st_segments
  • 0.2.4
    record
    2018-12-06 · diff ↗ ·
    added 2 exports
    st_ellipse, st_remove_holes
  • 0.2.2
    record
    2018-09-29 · diff ↗
  • 0.2.1
    record
    2018-07-21 · diff ↗
  • 0.2.0
    record
    2018-07-18 · diff ↗
  • 0.1.8
    record
    2018-05-15 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.5
    record
    2018-03-16 · diff ↗
  • 0.1.0
    record
    2018-01-16
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-01-16
Total releases
24 / 8 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
54 KB / 5 files
Download size
469 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nngeo")
Dorman, M., Benini, A., F.F Karney, C., Hough, I., Matas, F., Ranghetti, L., Rush, J., Russel, D., & Tarroux, A. (2024). nngeo: k-Nearest Neighbor Join for Spatial Data (Version 0.4.8) [Computer software]. https://doi.org/10.32614/CRAN.package.nngeo

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nngeo version 0.4.8 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy