View source: R/habitat_clustering.R
habitat_clustering | R Documentation |
Calculates how many pairs of plants of the same genotype are also in the same microhabitat.
habitat_clustering(genotype, habitat)
genotype |
Vector of genotype labels. |
habitat |
Vector of habitat labels of the same length as |
This calculates Fst as
\frac{f_0-\bar{f}}{1-\bar{f}}
where f_0
is the probability that two individuals in the same habitat
are identical and f \bar{f}
is the probability that two individuals
from the total population are identical.
Proportion of pairs of individuals in the same habitat that are identical.
Tom Ellis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.