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

Description Usage Arguments Author(s) Examples

View source: R/ht.R

Description

Estimate expected heterozygosity

Returns the general expected total heterozygosity parameter

Usage

1
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

1
2
3
4
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 )

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.