simAlleleFreqs {DNAtools} | R Documentation |
Simulate some allele frequencies using Dirichlet Random variables
simAlleleFreqs(
nLoci = 10,
allelesPerLocus = rep(10, nLoci),
shape = rep(3, nLoci)
)
nLoci |
|
allelesPerLocus |
the number of alleles per locus |
shape |
the shape parameter |
a list with elements locus.
l
where l=1,\ldots,L
, each
of which are vectors of length allelesPerLocus[l]
, consisting of allele
frequencies for that locus
set.seed(123)
simAlleleFreqs()