Learn R Programming

HardyWeinberg (version 1.6.1)

HWClo: 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

See Also

HWAlr,HWClr,HWIlr

Examples

Run this code
# NOT RUN {
  X <- HWData(2,100)
  Y <- HWClo(X)
# }

Run the code above in your browser using DataLab