Convert between matrices and phyDat objects
MatrixToPhyDat()
converts a matrix of tokens to a phyDat
object;
PhyDatToMatrix()
converts a phyDat
object to a matrix of tokens.
MatrixToPhyDat(tokens) PhyDatToMatrix(dataset)
tokens |
matrix of tokens, probably created with |
dataset |
A dataset of class |
MatrixToPhyDat()
returns an object of class phyDat
.
PhyDatToMatrix()
returns a matrix corresponding to the
uncompressed character states within a phyDat
object.
Martin R. Smith (martin.smith@durham.ac.uk)
Other phylogenetic matrix conversion functions:
StringToPhyDat()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.