data.tree
nodes)mergeTrees.Rd
Note this this function is used internally and was written to merge Rxs
trees (hence the name), so it may not fit other use cases: for example,
when merging two leaf nodes with the same name and path, if the value
attribute is a list, those lists are combined using base::c()
.
mergeTrees(tree1, tree2, spaces = 2, silent = metabefor::opts$get("silent"))
The trees to merge.
The number of spaces to use in messages (if silent = metabefor::opts$get("silent")
)
Whether to be silent or chatty.
The merged tree, a (cloned) data.tree
Node
object.