calc.allele.freq {fsthet} | R Documentation |
This calculates allele frequencies from a list of genotypes.
calc.allele.freq(genotypes)
genotypes |
A list of genotypes. |
obs.af |
A list of observed allele frequencies in the genotypes list. |
#create a random sample of genotypes
genotypes<-sample(c("0101","0102","0202"),50,replace=TRUE)
af<-calc.allele.freq(genotypes)