Description Usage Arguments Value See Also
This function computes and returns the distance matrix computed by using the given metric
to compute the distances between the rows of a data list or vector. Note that in contrast
to dist
, x
has to be a vector and the the distance metric
is an arbitrary function that must be symmetric and definite.
1  customDist(x, metric, diag = FALSE, upper = FALSE)

x 
A vector or list of objects. 
metric 
A metric, i.e. a function of two arguments that returns a numeric. Note that a metric must be definite and symmetric, otherwise the results will be undefined. 
diag 

upper 

A distance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.