geno.recode {haplo.stats}R Documentation

Recode Genotypes

Description

For all loci as pairs of columns in a matrix, recode alleles

Usage

geno.recode(geno, miss.val=0)

Arguments

geno Matrix of alleles, such that each locus has a pair of adjacent columns of alleles. If there are K loci, then ncol(geno) = 2*K. Rows represent alleles for each subject.
miss.val Vector of codes for missing values of alleles.

Details

Value

List with components:

grec Matrix of recoded alleles - see allele.recode
alist List of allele labels. For K loci, there are K components in the list, and the kth component is a vector of sorted unique allele labels for the kth locus.

Side Effects

References

See Also

allele.recode

Examples



[Package haplo.stats version 1.3.1 Index]