tree_to_volume_frame: Convert a volume tree to a data.frame

Description Usage Arguments Value

View source: R/data_generation.R

Description

Extract the name, label, and volumes for each node of the tree. The volumes are then expanded out creating a data_frame with n x v rows where n is the number of rows and v is the number of volumes

Usage

1
tree_to_volume_frame(vol_tree, filterFun = isLeaf)

Arguments

vol_tree

The volume tree of interest

filterFun

which nodes to include in the tree, defaults to isLeaf, all can be included with function(n) TRUE

Value

A data_frame with the volume tree


cfhammill/hierarchyTrees documentation built on Feb. 8, 2020, 2:54 a.m.