prune_branch: Prune a branch from a treestruct dataframe

Description Usage Arguments Details Value

View source: R/QSM_funcs.r

Description

Prune a branch from a treestruct dataframe

Usage

1
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 Oct. 14, 2021, 1:54 a.m.