nball: Number of alleles in a mixture

Description Usage Arguments Author(s) See Also Examples

View source: R/AuxFunc.R

Description

nball gives the number of alleles of a simumix object.

Usage

1
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 <contact@hindahaned.info>

See Also

simumix

Examples

1
2
3
4
5
6
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)

forensim documentation built on May 21, 2017, 3:39 a.m.

Search within the forensim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.