R Dataset / Package ISLR / Auto

On this R-data statistics page, you will find information about the Auto data set which pertains to Auto Data Set. The Auto data set is found in the ISLR R package. You can load the Auto data set in R by issuing the following command at the console data("Auto"). This will load the data into a variable called Auto. If R says the Auto data set is not found, you can try installing the package by issuing this command install.packages("ISLR") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Auto R data set. The size of this file is about 18,276 bytes.

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.

mpg

miles per gallon

cylinders

Number of cylinders between 4 and 8

displacement

Engine displacement (cu. inches)

horsepower

Engine horsepower

weight

Vehicle weight (lbs.)

acceleration

Time to accelerate from 0 to 60 mph (sec.)

year

Model year (modulo 100)

origin

Origin of car (1. American, 2. European, 3. Japanese)

name

Vehicle name

The orginal data contained 408 observations but 16 observations with missing values were removed.

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.

References

Games, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, www.StatLearning.com, Springer-Verlag, New York

Examples

pairs(Auto)
attach(Auto)
hist(mpg)

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-islr-auto.html" width="100%" height="100%" style="border:0px"></iframe>