ExpHet_site: Compute expected heterozygosity per site

View source: R/functions_pool.R

ExpHet_siteR Documentation

Compute expected heterozygosity per site

Description

Computes the expected heterozygosity for a given site.

Usage

ExpHet_site(geno_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.

Value

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


poolHelper documentation built on July 9, 2023, 6:23 p.m.