Merge two or more mapped states into one state
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"
and define the new the state "not-A"
.
mergeMappedStates(tree, old.states, new.state)
tree |
an object of class |
old.states |
states to merge. |
new.state |
name for new state. |
An object of class "simmap"
or "multiSimmap"
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.