He: Estimate expected heterozygosity

Description Usage Arguments Value Author(s) Examples

View source: R/he.R

Description

Returns the general expected heterozygosity parameter from the frequencies

Usage

1
He(x, small.N = FALSE)

Arguments

x

Either a data.frame object with locus objects or a vector or locus objects.

small.N

Apply the 2N/(2N-1) correction to the data for small sample sizes.

Value

The expected heterozygosity as a numeric or a data.frame if several loci are passed.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
3
data(arapat)
He(arapat)
He(arapat, small.N = TRUE)

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