blcTreeApply {RPMM} | R Documentation |
Recursive Apply Function for Beta RPMM Objects
Description
Recursively applies a function down the nodes of a Gaussian RPMM tree.
Usage
blcTreeApply(tr, f, start = "root", terminalOnly = FALSE, asObject = TRUE, ...)
Arguments
tr |
Tree object to recurse |
f |
Function to apply to every node |
start |
Starting node. Default = “root”. |
terminalOnly |
|
asObject |
|
.
In the latter case, f
should be defined as f <- function(nn,tree){...}
.
... |
Additional arguments to pass to |
Value
A list of results; names of elements are names of nodes.
[Package RPMM version 1.25 Index]