mergeMappedStates: Merge two or more mapped states into one state

Description Usage Arguments Value Author(s) References See Also

View source: R/utilities.R

Description

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".

Usage

1
mergeMappedStates(tree, old.states, new.state)

Arguments

tree

a modified object of class "phylo" or "multiPhylo" with a mapped discrete character.

old.states

states to merge.

new.state

name for new state.

Value

A modified object of class "phylo" or "multiPhylo".

Author(s)

Liam Revell [email protected]

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

make.simmap, read.simmap


liamrevell/phytools documentation built on Sept. 30, 2018, 1:41 a.m.