View source: R/drop.tip.simmap.R
drop.tip.simmap | R Documentation |
This function drops one or multiple tips from an object of class "simmap"
.
## S3 method for class 'simmap'
drop.tip(phy, tip, ...)
## S3 method for class 'simmap'
keep.tip(phy, tip, ...)
extract.clade.simmap(tree, node)
phy |
an object of class |
tip |
name or names of species to be dropped (or kept). |
node |
node number for the root node of the clade to be extracted. |
... |
optional arguments. Currently the logical argument |
tree |
for |
Equivalent to drop.tip
and keep.tip
but for a tree with a mapped discrete character.
extract.clade.simmap
is functionally equivalent to extract.clade
but preserves discrete character mappings on the tree.
Following drop.tip
in ape, the returned tree is always in "cladewise"
order.
A modified object of class "phylo"
containing the elements maps
and $mapped.edge
with the time spent in each state along each edge of the tree.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
drop.tip
, extract.clade
, make.simmap
, read.simmap
, sim.history
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.