powered by
Converts alleleobject with codominant markers into binary matrix with a column for each marker.
alleleobject
allele2zeroone(alleleobject)
A 0-1-matrix with individuals as rows and markers (alleles) as columns.
object of class alleleobject as generated by alleleinit.
alleleinit
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
data(tetragonula) ta <- alleleconvert(strmatrix=tetragonula[21:50,]) tai <- alleleinit(allelematrix=ta) allele2zeroone(tai)
Run the code above in your browser using DataLab