Learn R Programming

rsml (version 1.3)

addChildToRoot: Add a child root (lateral) to an existing root

Description

Add a child root (lateral) to an existing root

Usage

addChildToRoot(current, child)

Arguments

current
= the current root
child
= the child root to attach

Value

the current root, with the additional child attached

Examples

Run this code
data(lupin)
current <- lupin$roots[[1]]
child <- current$children[[1]]
current <- addChildToRoot(current, child)

Run the code above in your browser using DataLab