Compute distance matrices with tidy output
Arguments
- 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, or every column for
method = "gower".- ...
Additional arguments passed to distance functions
Value
A dist object containing the computed
distance matrix.
