build.charmatrix: Internal: create character matrix out of allele list
Description
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.
A matrix of characters in which there are two rows for
every individual corresponding to the two alleles in every locus
(column).
Arguments
allelelist
A list of lists. In the "outer" list, there are
n.variables lists, one for each locus. In the "inner" list, for every
individual there is a vector of two codes (typically characters, see
alleleinit) for the two alleles in that locus.