LabelFromData: Add/edit tree labels

View source: R/utilities.R

LabelFromDataR Documentation

Add/edit tree labels

Description

This function will set (add or overwrite) tree label values based on a data.frame whose columns are the labels to be added. The rows of the data.frame should correspond to the way the tree is structured. This can be used in conjunction with tree2file by adding columns to CSV output, reading them in to be used as data input to this function.

Usage

LabelFromData(tree, data)

Arguments

tree

a data.tree tree object

data

a data.frame whose columns are the labels to be added

Value

This operates by side effect

Author(s)

Pete Dodd


petedodd/HEdtree documentation built on Dec. 5, 2022, 6:22 a.m.