similarity | R Documentation |
It finds the similarity matrix of binary tables (1 and 0).
similarity(A)
A |
Matrix, data binary |
Distance matrix. Class = dist.
Felipe de Mendiburu
cv.similarity
, resampling.cv
#example table of molecular markers
library(agricolae)
data(markers)
distance<-similarity(markers)
#startgraph
tree<-hclust(distance,method="mcquitty")
plot(tree,col="blue")
#endgraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.