create_tree: Create a tree with integer id

View source: R/trees.R

create_treeR Documentation

Create a tree with integer id

Description

Create a tree with integer id.

Usage

create_tree(specs, root = 1L)

Arguments

specs

List of tree specs.

root

Integer identifying the integer, default is 1.

Details

Create a tree with integer id and level in a third column.

Value

Dataframe with tree.

Examples

specs <- list(
 l1 = list(digits = 100, nnodes = 9),
 l2 = list(digits = 100, nnodes = 19),
 l3 = list(digits = 100, nnodes = 29))
create_tree(specs)

FrankLef/eflTools documentation built on May 4, 2024, 10:04 p.m.