summary.rpart {rpart} | R Documentation |
Returns a detailed listing of a fitted rpart
object.
## S3 method for class 'rpart': summary(object, cp=0, digits=getOption("digits"), file, ...)
object |
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.
|
digits |
Number of significant digits to be used in the result. |
cp |
trim nodes with a complexity of less than cp from the listing.
|
file |
write the output to a given file name. (Full listings of a tree are often quite long). |
... |
arguments to be passed to or from other methods. |
This function is a method for the generic function summary for class
"rpart"
. It can be invoked by calling summary
for an object of the appropriate class, or directly by calling
summary.rpart
regardless of the class of the object.
summary
, rpart.object
, printcp
.
z.auto <- rpart(Mileage ~ Weight, car.test.frame) summary(z.auto)