R: Matrix of similarity in binary data

similarity {agricolae} | R 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

[Package agricolae version 1.2-8 Index]