powered by
This calculates allele frequencies from a list of genotypes.
calc.allele.freq(genotypes)
A list of genotypes.
A list of observed allele frequencies in the genotypes list.
# NOT RUN { #create a random sample of genotypes genotypes<-sample(c("0101","0102","0202"),50,replace=TRUE) af<-calc.allele.freq(genotypes) # }
Run the code above in your browser using DataLab