getAQ: Get an arbitrary string for tree calculations

View source: R/getAQ.R

getAQR Documentation

Get an arbitrary string for tree calculations

Description

This can be used to generate a string corresponding to calculating the mean tree output for a given quantity over the tree. The tree is specified as the input node, which must be a data.tree object containing probability variables as p. The quantity to be averaged over must be a node attribute qnt, which defaults as cost.

Usage

getAQ(node, qnt = "cost")

Arguments

node

a data.tree object that must contain a probability field p

qnt

Quantity

Value

string to be evaluated in calculations

Author(s)

Pete Dodd


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