similarity: Matrix of similarity in binary data

View source: R/similarity.R

similarityR Documentation

Matrix of similarity in binary data

Description

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

Usage

similarity(A)

Arguments

A

Matrix, data binary

Value

Distance matrix. Class = dist.

Author(s)

Felipe de Mendiburu

See Also

cv.similarity, resampling.cv

Examples

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

agricolae documentation built on Oct. 23, 2023, 1:06 a.m.