cut_tree: Recursively walk through a tree and structure remove...

Description Usage Arguments Value Examples

View source: R/editTree.R

Description

This function will recursively walk through a given tree and remove all of the descendants of a given node, making the given node a new leaf.

Usage

1
cut_tree(node, root, node_matrix, i)

Arguments

node

node number

root

root of non-proper subtree

node_matrix

node matrix obtained from create_node_matrix function

i

row in node matrix, starting at 1

Value

None

Examples

1
cut_tree(node, get_root(tree), node_matrix, 1)

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