Learn R Programming

phytools (version 0.2-40)

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

Arguments

tree
is a modified object of class "phylo".
type
mode indicating whether to get states at the nodes (type="nodes") or the tips (type="tips") of the tree.

Value

  • A named vector.

See Also

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