allFreq {APIS}R Documentation

Estimate the allele frequencies

Description

This function estimates allele frequencies

Usage

allFreq(genotype)

Arguments

genotype

A matrix of genotypes (n*p) n = number of individuals p = number of markers (coded as "All1/All2", ex: "A/A" or "NA/NA" for missing genotype)

Value

allele frequencies

Examples

data("APIS_offspring")
freq <- allFreq(APIS_offspring)

[Package APIS version 1.0.1 Index]