View source: R/unsupervised-distance.R
| tidy_dist | R Documentation |
Compute distance matrices with tidy output
tidy_dist(data, method = "euclidean", cols = NULL, ...)
data |
A data frame or tibble |
method |
Character; distance method (default: "euclidean"). Options: "euclidean", "manhattan", "maximum", "gower" |
cols |
Columns to include (tidy select). If NULL, uses all numeric columns. |
... |
Additional arguments passed to distance functions |
A dist object with tidy attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.