HWClo {HardyWeinberg}R Documentation

Convert genotype counts to compositions

Description

Function HWClo divides each row of a matrix by its total, and so produces matrix of compositions.

Usage

HWClo(X)

Arguments

X

A matrix of (genotype) counts

Value

A matrix

Author(s)

Jan Graffelman jan.graffelman@upc.edu

See Also

HWAlr,HWClr,HWIlr

Examples

  X <- HWData(2,100)
  Y <- HWClo(X)

[Package HardyWeinberg version 1.7.8 Index]