prune.phylo.rank: Prune Phylogenies to Higher Ranks

Description Usage Arguments Value See Also

View source: R/prune.phylo.rank.R

Description

Prune tips of a certain taxonomic rank from an object of class phylo and obtain a new phylo object whose tips are of a higher rank.

Usage

1
prune.phylo.rank(phy, tax, rank = "genus")

Arguments

phy

An object of class phylo.

tax

A data frame containing taxonomic information for the tip labels in phy.

rank

A character string giving the name of a column (= taxonomic rank) in tax to which phy will be pruned.

Value

An object of class phylo.

See Also

addTips and addSingleTip to add terminal nodes to a phylogeny.


heibl/megaptera documentation built on Jan. 17, 2021, 3:34 a.m.