nball | R Documentation |
nball
gives the number of alleles of a simumix
object.
nball(mix, byloc = FALSE)
mix |
a |
byloc |
a logical indicating whether the number of alleles must be calculated by locus or for all loci (default) |
If byloc=TRUE
, the number of alleles by locus; otherwise the sum.
Hinda Haned <hinda@owlsandarrows.nl>
simumix
data(strusa)
#simulating 100 genotypes with allele frequencies from the African American population
gaa<-simugeno(strusa,n=c(100,0,0))
#simulating a 4-person mixture
maa4<-simumix(gaa,ncontri=c(4,0,0))
nball(maa4,byloc=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.