calc.allele.freq {fsthet}R Documentation

This calculates allele frequencies.

Description

This calculates allele frequencies from a list of genotypes.

Usage

calc.allele.freq(genotypes)

Arguments

genotypes

A list of genotypes.

Value

obs.af

A list of observed allele frequencies in the genotypes list.

Examples

  #create a random sample of genotypes
  genotypes<-sample(c("0101","0102","0202"),50,replace=TRUE)
  af<-calc.allele.freq(genotypes)

[Package fsthet version 1.0.1 Index]