Displays the cp table for fitted rpart object.

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

Examples