This function prints an rpart
object. It is a method for the generic
function print
of class "rpart"
.
# S3 method for rpart
print(x, minlength = 0, spaces = 2, cp, digits = getOption("digits"),
nsmall = min(20, digits), ...)
fitted model object of class "rpart"
. This is assumed to be the result
of some function that produces an object with the same named
components as that returned by the rpart
function.
Controls the abbreviation of labels: see labels.rpart
.
the number of spaces to indent nodes of increasing depth.
the number of digits of numbers to print.
the number of digits to the right of the decimal. See format
.
prune all nodes with a complexity less than cp
from the
printout. Ignored if unspecified.
arguments to be passed to or from other methods.
A semi-graphical layout of the contents of x$frame
is
printed. Indentation is used to convey the tree topology.
Information for each node includes the node number, split, size,
deviance, and fitted value. For the "class"
method, the
class probabilities are also printed.
This function is a method for the generic function print
for class
"rpart"
. It can be invoked by calling print for an object of the
appropriate class, or directly by calling print.rpart
regardless of
the class of the object.
print
, rpart.object
,
summary.rpart
, printcp