order.auto: Reordering of autosomal genotype counts

View source: R/order.auto.R

order.autoR Documentation

Reordering of autosomal genotype counts

Description

Function order.auto reorders a named vector of three genotype counts, such that the sequence (minor homozygote, heterozygote, major heterzygote) is establised.

Usage

order.auto(X)

Arguments

X

a named vector of genotype counts (e.g. c(AA=25,AB=50,BB=25))

Value

a vector

Author(s)

Jan Graffelman jan.graffelman@upc.edu

References

Graffelman, J. (2015) Exploring Diallelic Genetic Markers: The HardyWeinberg Package. Journal of Statistical Software 64(3): 1-23. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v064.i03")}.

See Also

order.x

Examples

x <- c(MN=489,MM=298,NN=213)
print(x)
y <- order.auto(x)
print(y)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.