Parsimony score of random postorder tree
Arguments
- morphyObj
Object of class
morphy
, perhaps created withPhyDat2Morphy()
.
Examples
tokens <- matrix(c(
0, "-", "-", 1, 1, 2,
0, 1, 0, 1, 2, 2,
0, "-", "-", 0, 0, 0), byrow = TRUE, nrow = 3L,
dimnames = list(letters[1:3], NULL))
pd <- TreeTools::MatrixToPhyDat(tokens)
morphyObj <- PhyDat2Morphy(pd)
RandomTreeScore(morphyObj)
#> [1] 4
morphyObj <- UnloadMorphy(morphyObj)