Learn R Programming

rpart (version 2.0-3)

cu.summary: Automobile Data from `Consumer Reports' 1990

Description

The cu.summary data frame has 117 rows and 5 columns, giving data on makes of cars taken from the April, 1990 issue of Consumer Reports.

Usage

data(cu.summary)

Arguments

source

Consumer Reports, April, 1990, pp. 235--288 quoted in

John M. Chambers and Trevor J. Hastie eds. (1992) Statistical Models in S, Wadsworth and Brooks/Cole, Pacific Grove, CA 1992, pp. 46--47.

See Also

car.test.frame

Examples

Run this code
data(cu.summary)
fit <- rpart(Price ~ Mileage + Type + Country, cu.summary)
plot(fit, compress=T)
text(fit, use.n=T)

Run the code above in your browser using DataLab