View source: R/unsupervised-dbscan.R
| tidy_knn_dist | R Documentation |
Calculate distances to k-th nearest neighbor for each point
tidy_knn_dist(data, k = 4, cols = NULL)
data |
A data frame or matrix |
k |
Number of nearest neighbors (default: 4) |
cols |
Columns to include (tidy select). If NULL, uses all numeric columns. |
A tibble with observation IDs and k-NN distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.