reorder_internodes.BranchStructs: reorder_internodes.BranchStructs

Description Usage Arguments Details Value Examples

View source: R/BranchStructs_methods.r

Description

reorders internodes in treestruct objects so pathlength and other accumulation routines work properly

Usage

1
2
## S3 method for class 'BranchStructs'
reorder_internodes(obj)

Arguments

obj

TreeStructs object

Details

This reorders all rows in the obj$treestructs$treestruct dataframes. It runs setTips if that hasn't already been run. This reorders rows such that, as you go down the dataframe, you can accumulate metrics (such as pathlength and surface area). That is, you are guaranteed that internodes above you (children, grandchildren, etc) will have been assigned values.

Value

TreeStructs object

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on Oct. 14, 2021, 1:54 a.m.