collapse.singles.useRec: Modified collapse.singles() from package ape which deletes...

collapse.singles.useRecR Documentation

Modified collapse.singles() from package ape which deletes the single nodes (i.e., with a single descendant) in a tree, respecting the rec function. Internal, used by drop.tip.rec

Description

Modified collapse.singles() from package ape which deletes the single nodes (i.e., with a single descendant) in a tree, respecting the rec function. Internal, used by drop.tip.rec

Usage

collapse.singles.useRec(tree, root.edge = FALSE)

Arguments

tree

an object of class "phylo".

root.edge

whether to get the singleton edges from the root until the first bifurcating node and put them as root.edge of the returned tree. By default, this is ignored or if the tree has no edge lengths.

Value

tree with rec data


xavierdidelot/BactDating documentation built on Nov. 23, 2023, 1:32 a.m.