HWClo: Convert genotype counts to compositions

View source: R/HWClo.R

HWCloR 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)

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