powered by
Used for computation of the genetic distances alleledist.
alleledist
allelepaircomp(allelepair1,allelepair2,method="sum")
If method=="sum", number of shared alleles (0, 1 or 2), or
method=="sum"
NA. If method=="geometrical", 0, 0.5, sqrt(0.5)
NA
method=="geometrical"
sqrt(0.5)
(in case that one of the allelepairs is double such as in
c("A","B"),c("A","A")) or 1, or
c("A","B"),c("A","A")
NA.
vector of two allele codes (usually characters), or NA.
one of "sum" or "geometrical".
"sum"
"geometrical"
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
allelepaircomp(c("A","B"),c("A","C"))
Run the code above in your browser using DataLab