Learn R Programming

forestry (version 0.1.1)

create_nodes: create a tree with assigned name, children and fields

Description

create a tree with assigned name, children and fields

Usage

create_nodes(tree_name, add_children_count, ...)

Value

a tree with assigned name, children and fields

Arguments

tree_name

assign name of tree

add_children_count

assign number of chidren to this tree

...

parameters that will be passed as fields of this tree

Examples

Run this code
create_nodes(tree_name = "tree1", add_children_count = 3, class = c("A", "B", "C"))

Run the code above in your browser using DataLab