Description Usage Arguments Author(s) Examples
View source: R/melt_similarity.R
Transform a distance object or a similarity matrix to a long form dataframe
1 | melt_similarity(dat, decreasing = NA)
|
dat |
An R disttance object or similarity matrix |
decreasing |
Whether to sort the result based on decreasing values of distance/similarity |
Peter I-Fan Wu
1 2 3 4 5 6 | mat=matrix(c(1,1,0,0,
1,0,1,1,
1,0,0,0
),nrow=3,byrow=T)
dist_=hamming_distance(mat)
melt_similarity(dist_,decreasing=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.