dist_make: Make a distance matrix using a custom distance function
Description
Make a distance matrix using a custom distance function
Usage
dist_make(x, distance_fcn, ...)
Arguments
x
A matrix of observations, one per row
distance_fcn
A function used to compute the distance between two
rows of the data matrix. The two rows will be passed as the first and
second arguments to distance_fcn.
...
Additional arguments passed to distance_fcn.
Value
A dist object containing the distances between rows of the
data matrix.
Details
We do not set the call or method attributes of the
dist object.