Learn R Programming

rsml (version 1.3)

addNodeToRoot: Add a node to an existing root

Description

Add a node to an existing root

Usage

addNodeToRoot(ro, no)

Arguments

ro
= the current root
no
= the current node

Value

the root, with the added node

Examples

Run this code
n <- node(1, 1)
r <- root()
r <- addNodeToRoot(r, n)

Run the code above in your browser using DataLab