dropTip | R Documentation |
Drop one or multiple tips from your tree
dropTip(tree, tips)
tree |
(list of lists of treedata objects; no default) Name of a list of lists of treedata objects, such as produced by readTrees(). |
tips |
(character or numeric, no default) The tips(s) to drop. Either a single taxon name or node number or vector of such. |
Modifies a tree object (in RevGadget's format) by dropping one or more tips from the tree and from any associated data. Wrapper for treeio::drop.tip().
returns a list of list of treedata objects, with the modified tips.
treeio: drop.tip and ape: drop.tip.
file <- system.file("extdata",
"sub_models/primates_cytb_GTR_MAP.tre",
package="RevGadgets")
tree <- readTrees(paths = file)
tree_dropped <- dropTip(tree, "Otolemur_crassicaudatus")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.