rmSubclades: Removing IDs of sub-clades from a vector of clade names...

View source: R/phylo__rmSubclades.R

rmSubcladesR Documentation

Removing IDs of sub-clades from a vector of clade names (internal nodes) of a bifurcating tree.

Description

This function removes subclades from a list of clades and keeps non-overlapping clades. This function is useful for processing the output of function distsPerClade of this package.

Usage

rmSubclades(tr, nodes)

Arguments

tr

An input rooted bifurcating phylogenetic tree

nodes

A character vector of internal node numbers or labels. Note that the characters should be converted to integers if node numbers are used as input: as.integer(rmSubclades(...)).

Value

A vector of clades that do not overlap


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.