View source: R/dist_euclidean.R
dist_euclidean | R Documentation |
This function returns a measure of genetic distance based upon the euclidean frequency distance metric.
dist_euclidean(x, stratum = "Population")
x |
The genetic data, either as a single locus or multilocus ( |
stratum |
The groups among which you are going to estimate genetic distances. |
A matrix of euclidean distance estimates.
Rodney J. Dyer rjdyer@vcu.edu
AA <- locus( c("A","A") )
AB <- locus( c("A","B") )
BB <- locus( c("B","B") )
loci <- c(AA,AA,AB,AA,BB,BB,BB,AB,BB,AB)
df <- data.frame( Population=c(rep("A",5),rep("B",5) ), TPI=loci )
dist_euclidean(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.