findfreq: Finds the allele frequencies of a mixture from a tabfreq object
Description
The findfreq function finds the allele frequencies of a mixture stored in a simumix object, form a given tabfreq object.
If the tabfreq object contains multiple populations, a reference population from which to extract the
frequencies must be specified.
Usage
findfreq(mix, freq, refpop = NULL)
Arguments
mix
a simumix object
freq
a tabfreq object from which to extract the allele frequencies of the mixture
refpop
a factor giving the reference population in tabfreq from which to extract the
allele frequencies
Value
A list giving the allele frequencies for each locus.