Learn R Programming

rsml (version 1.3)

root: Root constructor

Description

Root constructor

Usage

root(nodes = NULL, parent = "", children = NULL, id = "", insertion = NULL, insertion_angle = NULL)

Arguments

nodes
= the nodes composing the root. Can be null
parent
= the identifier of the root parent. Can be null
children
= vector of children roots (root objects)
id
= root unique identifier
insertion
= insertion position of the root on its parent. Can be null is no parent
insertion_angle
= insertion angle of the root on its parent. Can be null is no parent

Value

the root

Examples

Run this code
r <- root()

n <- node(1, 1)
r <- root(n)

Run the code above in your browser using DataLab