auto | R Documentation |
Miles per gallon and other characteristics of vehicles from the 1970s-1980s. A version of this dataset was used as the 1983 American Statistical Association Exposition dataset.
data("auto")
A data frame with 392 observations on the following 9 variables.
mpg
miles per gallon (numeric vector)
cylinders
number of cylinders: 3,4,5,6,8 (ordered factor)
displacement
engine displacement in cubic inches (numeric vector)
horsepower
engine horsepower (integer vector)
weight
vehicle weight in of lbs. (integer vector)
acceleration
0-60 mph time in sec. (numeric vector)
model.year
ranging from 1970 to 1982 (integer vector)
origin
region of origin: American, European, Japanese (factor vector)
This is a modified version of the "Auto MPG Data Set" on the UCI Machine Learning Repository, which is a modified version of the "cars" dataset on StatLib.
Compared to the version of the dataset in UCI's MLR, this version of the dataset has removed (i) the 6 rows with missing horsepower
scores, and (ii) the last column giving the name of each vehicle (car.name
).
The dataset was originally collected by Ernesto Ramos and David Donoho.
StatLib—Datasets Archive at Carnegie Mellon University http://lib.stat.cmu.edu/datasets/cars.data
Machine Learning Repository at University of California Irvine https://archive.ics.uci.edu/ml/datasets/Auto+MPG
# load data
data(auto)
# display structure
str(auto)
# display header
head(auto)
# see 'cv.grpnet' for cross-validation examples
?cv.grpnet
# see 'grpnet' for fitting examples
?grpnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.