Learn R Programming

data.tree (version 0.1.6)

Node: Create Trees With Nodes

Description

Node is at the very heart of the data.tree package. All trees are constructed by tying toghether Node objects.

Usage

Node

Arguments

format

An R6Class generator object

See Also

For more details see the data.tree vignette: vignette("data.tree")

Examples

Run this code
library(data.tree)
acme <- Node$new("Acme Inc.")
accounting <- acme$AddChild("Accounting")
print(acme)

Run the code above in your browser using DataLab