nball: Number of alleles in a mixture

View source: R/AuxFunc.R

nballR Documentation

Number of alleles in a mixture

Description

nball gives the number of alleles of a simumix object.

Usage

nball(mix, byloc = FALSE)

Arguments

mix

a simumix object

byloc

a logical indicating whether the number of alleles must be calculated by locus or for all loci (default)

Author(s)

Hinda Haned <h.haned@nfi.minvenj.nl>

See Also

simumix

Examples

## Not run: 
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)

## End(Not run)

hindantation/forensim documentation built on Oct. 8, 2022, 4:42 a.m.