join_treeharps: Root a list of trees.

View source: R/join_treeharp.R

join_treeharpsR Documentation

Root a list of trees.

Description

Given a list of trees, this will root them.

Usage

join_treeharps(...)

Arguments

...

A list of Treeharp objects.

Details

This function combines TreeHarp objects into a single TreeHarp. The function will root all of them at a node called "script", which is neither a function call nor an argument nor a symbol. The BFS ordering is then updated.

Objects that are not of class TreeHarp will be dropped from the list before the rooting takes place.

Value

A TreeHarp object


autoharp documentation built on April 3, 2025, 6:36 p.m.