Learn R Programming

rsml (version 1.3)

getInsertionPosition: Compute the insertion of the root on its parent

Description

Compute the insertion of the root on its parent

Usage

getInsertionPosition(parent, current)

Arguments

parent
= the parent root
current
= the current root

Value

the insertion position

Examples

Run this code
data(lupin)
r <- lupin$roots[[1]]
r1 <- r$children[[1]]
getInsertionPosition(r, r1)

Run the code above in your browser using DataLab