\Header{summary.rpart}{Summarize a Fitted Rpart Object}
\keyword{tree}{summary.rpart}
\begin{Description}\relax
Returns a detailed listing of a fitted \code{rpart} object.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'rpart':
summary(object, cp=0, digits=getOption("digits"), file, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] fitted model object of class \code{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 \code{rpart} function.

\item[\code{digits}] Number of significant digits to be used in the result.

\item[\code{cp}] trim nodes with a complexity of less than \code{cp} from the listing.

\item[\code{file}] write the output to a given file name. (Full listings of a tree are
often quite long).

\item[\code{...}] arguments to be passed to or from other methods.

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is a method for the generic function summary for class
\code{"rpart"}.  It can be invoked by calling \code{summary}
for an object of the appropriate class, or directly by calling
\code{summary.rpart} regardless of the class of the object.
\end{Details}
\begin{SeeAlso}\relax
\code{\Link{summary}}, \code{\Link{rpart.object}}, \code{\Link{printcp}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(car.test.frame)
z.auto <- rpart(Mileage ~ Weight, car.test.frame)
summary(z.auto)
\end{ExampleCode}
\end{Examples}

