Learn R Programming

phytools (version 0.2-40)

drop.tip.simmap: Drop tip from SIMMAP format tree

Description

This function drops one or multiple tips from the modified "phylo" object with a mapped binary or multistate trait (see read.simmap) while maintaining the matrix $mapped.edge and list of mappings by branch maps.

Usage

drop.tip.simmap(tree, tip)

Arguments

tree
a phylogenetic tree in modified "phylo" format (see read.simmap).
tip
name or names of species to be dropped.

Value

  • a modified "phylo" object containing the elements maps and $mapped.edge with the time spent in each state along each edge of the tree.

See Also

brownie.lite, drop.tip, make.simmap, read.simmap, sim.history