Learn R Programming

data.tree (version 0.2.0-3)

Do: Executes a function an a set of nodes

Description

Executes a function an a set of nodes

Usage

Do(nodes, fun, ...)

Arguments

nodes

a set of nodes, usually obtained via Traverse

fun

the function to execute. The function is expected to be either a Method, or to take a Node as its first argument

...

any additional parameters to be passed on to fun