knn_dist: calculate k nearest neighbours from a distance matrix

View source: R/structurednessindices.R

knn_distR Documentation

calculate k nearest neighbours from a distance matrix

Description

calculate k nearest neighbours from a distance matrix

Usage

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 documentation built on July 7, 2025, 3:01 p.m.