donut: Nearest Neighbour Search with Variables on a Torus

Finds the k nearest neighbours in a dataset of specified points, adding the option to wrap certain variables on a torus. The user chooses the algorithm to use to find the nearest neighbours. Two such algorithms, provided by the packages 'RANN' <>, and 'nabor' <>, are suggested.

Version: 1.0.3
Depends: R (≥ 3.3.0)
Imports: graphics
Suggests: knitr, nabor, RANN, rmarkdown, testthat (≥ 2.1.0)
Published: 2023-09-02
DOI: 10.32614/CRAN.package.donut
Author: Paul J. Northrop [aut, cre, cph]
Maintainer: Paul J. Northrop <p.northrop at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: README NEWS
CRAN checks: donut results


Reference manual: donut.pdf
Vignettes: An overview of donut


Package source: donut_1.0.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): donut_1.0.3.tgz, r-oldrel (arm64): donut_1.0.3.tgz, r-release (x86_64): donut_1.0.3.tgz, r-oldrel (x86_64): donut_1.0.3.tgz
Old sources: donut archive

Reverse dependencies:

Reverse imports: hopkins


Please use the canonical form to link to this page.