glcTreeApply: Recursive Apply Function for Gaussian RPMM Objects

Description Usage Arguments Value

View source: R/gaussRPMM.R

Description

Recursively applies a function down the nodes of a Gaussian RPMM tree.

Usage

1
2
glcTreeApply(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

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)

. In the latter case, f should be defined as f <- function(nn,tree){...}.

...

Additional arguments to pass to f

Value

A list of results; names of elements are names of nodes.


RPMM documentation built on May 2, 2019, 2:52 p.m.

Related to glcTreeApply in RPMM...