treeSkeleton objects allow you to traverse a reference class object as if it had a tree structure, merely by knowing how to call parent or child nodes.

treeSkeleton__initialize(object, parent_caller = "parent",
  children_caller = "children")

Arguments

object

ANY. If a reference class object, then parent_caller and children_caller will refer to reference class methods. If an attribute on the object with names of children_caller and parent_caller exists, those will be used. Otherwise, the generic methods will be used.

parent_caller

character. The name of the reference class method that returns the parent object, if the object was a node in a tree structure.

children_caller

character. The name of the reference class method that returns the child objects, if the object was a node in a tree structure.

Value

a treeSkeleton object.