rpart (version 4.1.23)

printcp: Displays CP table for Fitted Rpart Object

Description

Displays the cp table for fitted rpart object.

Usage

printcp(x, digits = getOption("digits") - 2)

Arguments

x

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

the number of digits of numbers to print.

Details

Prints a table of optimal prunings based on a complexity parameter.

See Also

summary.rpart, rpart.object