Learn R Programming

HardyWeinberg (version 1.7.8)

genlabels: Label genotype counts of a vector or matrix

Description

Function genlabels sets the names of a vector or matrix of genotype counts.

Usage

genlabels(X)

Value

A vector or a matrix

Arguments

X

a 3 (or 5) element vector with genotype counts, a matrix of genotype counts (3 or 5 columns)

Author

Jan Graffelman (jan.graffelman@upc.edu)

See Also

HWChisq

Examples

Run this code
x <- c(25,50,25)
x <- genlabels(x)

Run the code above in your browser using DataLab