geno.recode {haplo.stats} | R Documentation |
For all loci as pairs of columns in a matrix, recode alleles
geno.recode(geno, miss.val=0)
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. |
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. |
allele.recode