prune_branch: Prune a branch from a treestruct dataframe

View source: R/QSM_funcs.r

prune_branchR Documentation

Prune a branch from a treestruct dataframe

Description

Prune a branch from a treestruct dataframe

Usage

prune_branch(ts, internode_id, row)

Arguments

ts

treestruct dataframe (not object)

internode_id

if this is provided, the id of the internode for which children are sought

row

if this is provided, the row number of the internode for which children are sought

Details

only one of internode_id and row arguments are required.

Value

treestruct pruned of branch starting with the specified internode. Parent_rows are re-computed.


ashenkin/treestruct documentation built on June 11, 2025, 10:40 a.m.