Learn R Programming

agricolae (version 1.3-7)

similarity: Matrix of similarity in binary data

Description

It finds the similarity matrix of binary tables (1 and 0).

Usage

similarity(A)

Value

Distance matrix. Class = dist.

Arguments

A

Matrix, data binary

Author

Felipe de Mendiburu

See Also

cv.similarity, resampling.cv

Examples

Run this code
#example table of molecular markers
library(agricolae)
data(markers)
distance<-similarity(markers)
#startgraph
tree<-hclust(distance,method="mcquitty")
plot(tree,col="blue")
#endgraph

Run the code above in your browser using DataLab