gcode {haplo.score} | R Documentation |
For a one-locus genotype, composed of two vectors of alleles, create a single vector of numeric codes that represent the genotypes.
gcode(a1, a2)
a1 |
Vector of "first" alleles. |
a2 |
Vector of "second" alleles. |
Alleles are assumed to be coded as rank order (see allele.recode).
Vector of integer codes for genotypes.
Zykin D., Zhivotovsky L. and Weir B, "Exact tests for association between alleles at arbitrary numbers of loci" Human Identification: The Use of DNA Markers, 169-178, 1995.
ungcode, allele.recode, geno.recode