TreeSearch (version 0.4.0)

CharacterLength: Character length

Description

Homoplasy length of each character in a dataset on a specified tree.

Usage

CharacterLength(tree, dataset)

FitchSteps(tree, dataset)

FastCharacterLength(tree, dataset)

Arguments

tree

A tree of class phylo.

dataset

A phylogenetic data matrix of class phyDat, whose names correspond to the labels of any accompanying tree.

Value

CharacterLength() returns a vector listing the contribution of each character to tree score, according to the algorithm of Brazeau, Guillerme and Smith (2019).

Functions

  • FastCharacterLength: Do not perform checks. Use with care: may cause erroneous results or software crash if variables are in the incorrect format.

References

Brazeau2018TreeSearch

See Also

Other tree scoring: Fitch, IWScore, MorphyTreeLength

Examples

Run this code
# NOT RUN {
data('inapplicable.datasets')
dataset <- inapplicable.phyData[[12]]
tree <- TreeTools::NJTree(dataset)
CharacterLength(tree, dataset)

# }

Run the code above in your browser using DataLab