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 Dec. 12, 2023, 3:02 a.m.