blcTreeApply {RPMM} | R Documentation |
Recursively applies a function down the nodes of a Gaussian RPMM tree.
blcTreeApply(tr, f, start = "root", terminalOnly = FALSE, asObject = TRUE, ...)
tr |
Tree object to recurse |
f |
Function to apply to every node |
start |
Starting node. Default = “root”. |
terminalOnly |
TRUE =only terminal nodes, FALSE =all nodes. |
asObject |
TRUE : f accepts node as object.
FALSE : f accepts node by node name and object name, f(nn,tr) |
... |
Additional arguments to pass to f |
A list of results; names of elements are names of nodes.