This function merges two or mapped states on the tree to get one new state. For instance, one could merge the states "C"
, "G"
, and "T"
to get the state "not-A"
.
mergeMappedStates(tree, old.states, new.state)
a modified object of class "phylo"
or "multiPhylo"
with a mapped discrete character.
states to merge.
name for new state.
A modified object of class "phylo"
or "multiPhylo"
.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.