Home
Packages
Datasets
Task Views
R resources
Packages
Toggle theme
Toggle Menu
Home
Packages
stops
knn_dist
knn_dist function
calculate k nearest neighbours from a distance matrix
Copy
calculate k nearest neighbours from a distance matrix
knn_dist
(
dis
,
k
)
Arguments
dis
: distance matrix
k
: number of nearest neighbours (Note that with a tie, the function returns the alphanumerically first one!)
stops package
Read PDF manual
Maintainer: Thomas Rusch
License: GPL-2 | GPL-3
Last published: 2024-09-22
https://r-forge.r-project.org/projects/stops/