Learn R Programming

poolHelper (version 1.1.0)

ExpHet_site: Compute expected heterozygosity per site

Description

Computes the expected heterozygosity for a given site.

Usage

ExpHet_site(geno_site)

Value

a numerical value corresponding to the expected heterozygosity at that site.

Arguments

geno_site

is a vector where each entry contains the genotype for a single individual, coded as 0,1,2 and using NA for the missing data.