landscape.exp.het: Calculate expected heterozygosity

Description Usage Arguments Details Value See Also Examples

Description

Calculate expected heterozygosity from a landscape

Usage

1
  hetmat <- landscape.exp.het(rland)

Arguments

rland

the Rmetasim landscape object

Details

Calculates the expected heterozygosity in each population:

1 - sum(p^2)

where p is a vector of allele frequencies for a locus in a population.

Value

A matrix with num loci columns and num populations rows. Each element reflects the expected heterozygosity for that population x locus combination

See Also

landscape.obs.het, Fst.landscape

Examples

1
2
3
4
  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)
  exphet <- landscape.exp.het(exampleland)
  rm(exampleland)

stranda/kernelPop2 documentation built on March 30, 2020, 5:37 a.m.