| Auto {ISLR2} | R Documentation |
Auto Data Set
Description
Gas mileage, horsepower, and other information for 392 vehicles.
Usage
Auto
Format
A data frame with 392 observations on the following 9 variables.
mpgmiles per gallon
cylindersNumber of cylinders between 4 and 8
displacementEngine displacement (cu. inches)
horsepowerEngine horsepower
weightVehicle weight (lbs.)
accelerationTime to accelerate from 0 to 60 mph (sec.)
yearModel year (modulo 100)
originOrigin of car (1. American, 2. European, 3. Japanese)
nameVehicle name
Source
This dataset was taken from the StatLib library which is
maintained at Carnegie Mellon University. The dataset was used in the
1983 American Statistical Association Exposition. The original
dataset has 397 observations, of which 5 have missing values for the
variable "horsepower". These rows are removed here. The original
dataset is avaliable as a CSV file in the docs directory, as
well as at https://www.statlearning.com.
References
James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, https://www.statlearning.com, Springer-Verlag, New York
Examples
pairs(Auto)
attach(Auto)
hist(mpg)