reroot_tree_at_tip: Root the phylogeny at a tip

View source: R/ape_utils.R

reroot_tree_at_tipR Documentation

Root the phylogeny at a tip

Description

An utility function to root the tree at a tip for hidden state prediction through ancestral reconstruction

Usage

reroot_tree_at_tip(phy, tip)

Arguments

phy

a phylo-class object from the ape package

tip

the focal tip, either a character string matching the tip label or a number matching its index

Value

A phylo-class object containing the re-rooted tree


wu-lab-uva/RasperGade documentation built on June 24, 2022, 2:47 p.m.