remove_branches_from_node: Cut tree at specified node

Description Usage Arguments Value Examples

View source: R/editTree.R

Description

Given a tree and a selected node, this function removes the branches stemming off of that node, thus making that node a leaf. It returns this altered tree.

Usage

1
remove_branches_from_node(icceTree, node)

Arguments

icceTree

icceTree data structure

node

node number

Value

new tree topology–node is now a leaf and all of node's descendants are removed.

Examples

1
icceTree <- remove_branches_from_node(icceTree, node=8)

ethanmoyer/ICCE documentation built on Aug. 25, 2020, 5:18 p.m.