View source: R/convert_to_dist.R
| convert_to_dist | R Documentation |
This function converts a similarity matrix (with values between 0 and 1 and 1s on the diagonal) or a distance matrix into a 'dist' object. The user can specify the method used to transform similarity values into distances.
convert_to_dist(dist_mat, similarity_transform = c("linear", "sqrt"))
dist_mat |
A square matrix (similarity or distance) or a 'dist' object. |
similarity_transform |
Method to convert similarity to distance. Either
|
An object of class 'dist'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.