Calculates expected mean expected heterozygosity per population

utils.het.pop(x, t_het)

Arguments

x

A genlight object containing the SNP genotypes [required].

t_het

A string specifying the type of expected heterozygosity to be calculated. Options are "He" for expected heterozygosity and "Ho" for observed

Value

A vector with the mean expected heterozygosity for each population

Author

Bernd Gruber & Luis Mijangos (bugs? Post to https://groups.google.com/d/forum/dartr)

Examples

out <- utils.het.pop(testset.gl,t_het="He")