Learn R Programming

strataG (version 2.0.2)

allelicRichness: Allelic Richness

Description

Calculate allelic richness for each locus.

Usage

allelicRichness(g)

Arguments

g

a '>gtypes object.

Value

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