knn | R Documentation |
Generates a KNN matrix.
knn(dist.mat, k = 5)
dist.mat |
Distance matrix. |
k |
Number of neighbors. Default of 5. |
A naighbor matrix with samples in rows and neighbors in columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.