Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

allelepaircomp

Internal: compares two pairs of alleles


Description

Used for computation of the genetic distances alleledist.

Usage

allelepaircomp(allelepair1,allelepair2,method="sum")

Arguments

allelepair1

vector of two allele codes (usually characters), or NA.

allelepair2

vector of two allele codes (usually characters), or NA.

method

one of "sum" or "geometrical".

Value

If method=="sum", number of shared alleles (0, 1 or 2), or NA. If method=="geometrical", 0, 0.5, sqrt(0.5) (in case that one of the allelepairs is double such as in c("A","B"),c("A","A")) or 1, or NA.

Author(s)

See Also

Examples

allelepaircomp(c("A","B"),c("A","C"))

prabclus

Functions for Clustering and Testing of Presence-Absence, Abundance and Multilocus Genetic Data

v2.3-2
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>, Bernhard Hausdorf <Hausdorf@zoologie.uni-hamburg.de>
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.