Learn R Programming

poppr (version 1.0.5)

diss.dist: Calculate a distance matrix based on relative dissimilarity

Description

diss.dist uses the same discreet dissimilarity matrix utilized by the index of association (see ia for details). It returns a distance reflecting a ratio of the number of observed differences by the number of possible differences. Eg. two individuals who share half of the same alleles will have a distance of 0.5. This function can analyze distances for any marker system.

Usage

diss.dist(pop)

Arguments

pop
a genind object.

Value

  • A distance object.

Examples

Run this code
# A simple example. Let's analyze the mean distance among populations of A.
# euteiches.

data(Aeut)
mean(diss.dist(popsub(Aeut, 1)))
mean(diss.dist(popsub(Aeut, 2)))
mean(diss.dist(Aeut))

Run the code above in your browser using DataLab