Description Usage Arguments Details Value
'distance' returns a matrix of distances between all the objects in data using the distance function indicated in the arguments.
1 |
data |
matrix where each row represent an object of the dataset defined by the variables in the columns. If the object is not a matrix but it has and adequate structure (i.e. it is a tibble or data.frame)it will be cast to matrix by the function. |
distance |
the three-letters name of the distance function chosen to calculate the distance between the objects of the dataset. Codes: |
Canberra distance
Chebyshev distance
Cosine distance
Euclidean distance
Jaccard distance
Manhattan distance
Matusita distance
Neyman distance
Pearson distance
Triangular discrimination distance
A matrix containing the distance between all the objects of the dataset calculating with the chosen distance function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.