Learn R Programming

data.tree (version 1.1.0)

CreateRandomTree: Create a tree for demo and testing

Description

Create a tree for demo and testing

Usage

CreateRandomTree(nodes = 100, root = Node$new("1"), id = 1)

Arguments

nodes

The number of nodes to create

root

the previous node (for recursion, typically use default value)

id

The id (for recursion)