dist_jaccard | R Documentation |
This function returns a measure of genetic distance based upon the Jaccard set distance metric.
dist_jaccard(x, stratum = "Population")
x |
A |
stratum |
The name of the stratum variable in |
A matrix of Jaccard distance
Rodney J. Dyer rjdyer@vcu.edu
AA <- locus( c("A","A") )
AB <- locus( c("A","B") )
AC <- locus( c("A","C") )
BB <- locus( c("B","B") )
BC <- locus( c("B","C") )
CC <- locus( c("C","C") )
loci <- c(AA,AA,AB,AA,BB,BC,CC,BB,BB,CC)
df <- data.frame( Population=c(rep("A",5),rep("B",5) ), TPI=loci )
dist_jaccard(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.