genot2al function

Separates diploid genotypes in its constituant alleles

Separates diploid genotypes in its constituant alleles

Separates the input vector of diploid genotypes in two vectors each containing one allele, and returns a vector of length 2*length(y) with the second part being the second allele

genot2al(y)

Arguments

  • y: the diploid genotypes at one locus

Returns

returns a vector of length 2*length(y) , with the second half of the vector containing the second alleles

References

Goudet J. (2004). A library for R to compute and test variance components and F-statistics. In Prep

Author(s)

Jerome Goudet, DEE, UNIL, CH-1015 Lausanne Switzerland

jerome.goudet@unil.ch

See Also

varcomp.

Examples

data(gtrunchier) genot2al(gtrunchier[,4])