| cu.summary {rpart} | R Documentation |
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.
data(cu.summary)
This data frame contains the following columns:
PriceCountryBrazil
England
France
Germany
Japan
Japan/USA
Korea
Mexico
Sweden
USA
ReliabilityMuch worse < worse < average < better < Much better
MileageTypeCompact
Large
Medium
Small
Sporty
Van
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.
data(cu.summary) fit <- rpart(Price ~ Mileage + Type + Country, cu.summary) plot(fit, compress=TRUE) text(fit, use.n=TRUE)