landscape.exp.het | R Documentation |
Calculate expected heterozygosity from a landscape
landscape.exp.het(Rland)
Rland |
the Rmetasim landscape object |
Calculates the expected heterozygosity in each population:
1-\Sigma_{i_k} p_i^2
where p
is a vector of allele frequencies for a locus in a population.
A matrix with num loci columns and num populations rows. Each element reflects the expected heterozygosity for that population x locus combination
landscape.obs.het, Fst.landscape
exampleland <- landscape.new.example()
exampleland <- landscape.simulate(exampleland, 4)
exphet <- landscape.exp.het(exampleland)
rm(exampleland)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.