strataG (version 2.4.905)

allelicRichness: Allelic Richness

Description

Calculate allelic richness for each locus.

Usage

allelicRichness(g, by.strata = FALSE)

Arguments

g

a '>gtypes object.

by.strata

logical - return results grouped by strata?

Value

a data frame with the allelic richness of each locus calculated as the number of alleles divided by the number of samples without missing data at that locus.

Examples

Run this code
# NOT RUN {
data(msats.g)
allelicRichness(msats.g)

# }

Run the code above in your browser using DataLab