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

Arguments

tree

ape::phylo tree

node

node number

Value

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

Examples

1
2
tree <- remove_branches_from_node(tree, node)
... some visualization 

ethanmoyer/MethylConstruct documentation built on July 10, 2020, 12:28 a.m.