View source: R/simAlleleFreqs.R
simAlleleFreqs | R Documentation |
Simulate some allele frequencies using Dirichlet Random variables
simAlleleFreqs( nLoci = 10, allelesPerLocus = rep(10, nLoci), shape = rep(3, nLoci) )
nLoci |
L the number of loci in the multiplex |
allelesPerLocus |
the number of alleles per locus |
shape |
the shape parameter |
a list with elements locus.
l where l=1,…,L, each
of which are vectors of length allelesPerLocus[l]
, consisting of allele
frequencies for that locus
set.seed(123) simAlleleFreqs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.