Learn R Programming

dartR (version 2.9.9.5)

utils.het.pop: Calculates expected mean expected heterozygosity per population

Description

Calculates expected mean expected heterozygosity per population

Usage

utils.het.pop(x, t_het)

Value

A vector with the mean expected heterozygosity for each population

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

Author

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

Examples

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

Run the code above in your browser using DataLab