dropTip: dropTip

View source: R/dropTip.R

dropTipR Documentation

dropTip

Description

Drop one or multiple tips from your tree

Usage

dropTip(tree, tips)

Arguments

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.

Details

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().

Value

returns a list of list of treedata objects, with the modified tips.

See Also

treeio: drop.tip and ape: drop.tip.

Examples


file <- system.file("extdata",
                    "sub_models/primates_cytb_GTR_MAP.tre",
                    package="RevGadgets")
tree <- readTrees(paths = file)
tree_dropped <- dropTip(tree, "Otolemur_crassicaudatus")



RevGadgets documentation built on May 29, 2024, 10:03 a.m.