drop_tip: Trim a phylogeny

Description Usage Arguments Value See Also

View source: R/utility.R

Description

This is a weak wrapper around ape's drop.tip. Importantly, if asked to drop no species from a phylogeny, it will just return the phylogeny (not an empty phylogeny, as drop.tip) will.

Usage

1
drop_tip(tree, spp)

Arguments

tree

An phylo object

spp

A vector of species (one, many, or none) to be removed from tree

Value

phylo object

See Also

drop.tip extract.clade


pez documentation built on May 29, 2017, 8:41 p.m.