Learn R Programming

rpart (version 4.0-3)

car90: Automobile Data from Consumer Reports 1990

Description

Data on 111 cars, taken from pages 235--255, 281--285 and 287--288 of the April 1990 Consumer Reports Magazine.

Usage

data(car90)

Arguments

source

This is derived (with permission) from the data set car.all in S-PLUS, but with some further clean up of variable names and definitions.

See Also

car.test.frame, cu.summary

Examples

Run this code
data(car90)
plot(car90$Price/1000, car90$Weight,
     xlab = "Price (thousands)", ylab = "Weight (lbs)")
mlowess <- function(x, y, ...) {
    keep <- !(is.na(x) | is.na(y))
    lowess(x[keep], y[keep], ...)
}
with(car90, lines(mlowess(Price/1000, Weight, f = 0.5)))

Run the code above in your browser using DataLab