phyDat
objectsMatrixToPhyDat()
converts a matrix of tokens to a phyDat
object;
PhyDatToMatrix()
converts a phyDat
object to a matrix of tokens.
MatrixToPhyDat(tokens)PhyDatToMatrix(dataset)
matrix of tokens, probably created with ReadCharacters()
or ReadTntCharacters()
. Row names should correspond to tip
labels; column names may optionally correspond to
character labels.
A dataset of class phyDat
.
MatrixToPhyDat()
returns an object of class phyDat
.
PhyDatToMatrix()
returns a matrix corresponding to the
uncompressed character states within a phyDat
object.
Other phylogenetic matrix conversion functions:
StringToPhyDat()