For use in alleleinit
.
Creates a matrix of characters in which there are two rows for
every individual corresponding to the two alleles in every locus
(column) out of a list of lists, such as required by
alleledist
.
1  build.charmatrix(allelelist,n.individuals,n.variables)

allelelist 
A list of lists. In the "outer" list, there are

n.individuals 
integer. Number of individuals. 
n.variables 
integer. Number of loci. 
A matrix of characters in which there are two rows for every individual corresponding to the two alleles in every locus (column).
Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche
alleleinit
, unbuild.charmatrix
1 2 3 4 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.