Data for Exercise 5.8

Epatwoseater

Format

A data frame/tibble with 36 observations on ten variables

class

a character variable with value TWO SEATERS

manufacturer

a character variable with values ACURA, AUDI, BMW, CHEVROLET, DODGE, FERRARI, HONDA, LAMBORGHINI, MAZDA, MERCEDES-BENZ, PLYMOUTH, PORSCHE, and TOYOTA

carline

a character variable with values BOXSTER, BOXSTER S, CORVETTE, DB132/144 DIABLO, FERRARI 360 MODENA/SPIDER, FERRARI 550 MARANELLO/BARCHETTA, INSIGHT, MR2 ,MX-5 MIATA, NSX, PROWLER, S2000, SL500, SL600, SLK230 KOMPRESSOR, SLK320, TT ROADSTER, TT ROADSTER QUATTRO, VIPER CONVERTIBLE, VIPER COUPE, Z3 COUPE, Z3 ROADSTER, and Z8

displ

engine displacement (in liters)

cyl

number of cylinders

trans

a factor with levels Auto(L4), Auto(L5), Auto(S4), Auto(S5), Auto(S6), Manual(M5), and Manual(M6)

drv

a factor with levels 4(four wheel drive) F(front wheel drive) R(rear wheel drive)

cty

city mpg

hwy

highway mpg

cmb

combined city and highway mpg

@source Environmental Protection Agency.

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples


summary(Epatwoseater$cty)
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>    8.00   16.75   19.00   18.86   21.00   61.00 
plot(hwy ~ cty, data = Epatwoseater)

boxplot(cty ~ drv, data = Epatwoseater, col = "lightgreen")