Learn R Programming

GE (version 0.1.1)

node_print: Print a Tree and Its Fields

Description

A wrapper of the function print.Node of the package data.tree. Print a tree and its fields except the func field.

Usage

node_print(node, ...)

Arguments

node

a Node object.

...

arguments passed to print.Node.

Examples

Run this code
# NOT RUN {
dst <- node_set("firm", NA,
                type = "SCES",
                alpha = 2, beta = c(0.8, 0.2),
                es = 0.5,
                "wheat", "iron"
)

node_print(dst)

####
dst <- node_set("firm", NA,
                type = "FUNC",
                func = min,
                "wheat", "iron"
)

node_print(dst)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab