Learn R Programming

HardyWeinberg (version 1.7.8)

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)

Value

A matrix

Arguments

X

A matrix of (genotype) counts

Author

Jan Graffelman jan.graffelman@upc.edu

See Also

HWAlr,HWClr,HWIlr

Examples

Run this code
  X <- HWData(2,100)
  Y <- HWClo(X)

Run the code above in your browser using DataLab