Ht: Estimate expected heterozygosity Returns the general expected...

View source: R/ht.R

HtR Documentation

Estimate expected heterozygosity Returns the general expected total heterozygosity parameter

Description

Estimate expected heterozygosity

Returns the general expected total heterozygosity parameter

Usage

Ht(x, stratum = "Population")

Arguments

x

A data.frame object with locus objects

stratum

The name of the column representing the stratum variable (default=Population)

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

loci1 <- c( locus( c("A","A") ), locus( c("A","A") ), locus( c("A","B")))
loci2 <- c( locus( c("A","A") ), locus( c("A","B")), locus(c("B","B")))
df <- data.frame( Population=c("One","One","One","Two","Two","Two"), Locus=c(loci1,loci2) )
Ht( df )

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.