Learn R Programming

phytools (version 1.2-0)

getStates: Get the states at nodes or tips from a mapped tree

Description

This function gets the states from the nodes or tips of a mapped tree (e.g., make.simmap).

Usage

getStates(tree, type=c("nodes","tips","both"))

Value

A named vector (for "phylo") or matrix (for "multiPhylo").

Arguments

tree

is a modified object of class "phylo" or "multiPhylo".

type

mode indicating whether to get states at the nodes (type="nodes") or the tips (type="tips") of the tree.

Author

Liam Revell liam.revell@umb.edu

References

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

See Also

describe.simmap, make.simmap, read.simmap, sim.history