model.frame.tree(formula, ...)
tree
and other functions for manipulating tree objects.
This function is a method for the generic function for class tree. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.