Skip to contents

The `mtcars_df` dataset provides information extracted from the 1974 Motor Trend US magazine. It comprises data on fuel consumption and 10 aspects of automobile design and performance for 32 cars (1973–74 models). The dataset name has been suffixed with `_df` to identify it as a data frame, making it easier to distinguish within the `sampledatasets` package.

Usage

data(mtcars_df)

Format

A data frame with 32 observations and 11 variables:

mpg

Miles/(US) gallon (numeric).

cyl

Number of cylinders (numeric).

disp

Displacement (cu.in.) (numeric).

hp

Gross horsepower (numeric).

drat

Rear axle ratio (numeric).

wt

Weight (1000 lbs) (numeric).

qsec

1/4 mile time (numeric).

vs

Engine (0 = V-shaped, 1 = straight) (numeric).

am

Transmission (0 = automatic, 1 = manual) (numeric).

gear

Number of forward gears (numeric).

carb

Number of carburetors (numeric).

Source

Motor Trend, 1974.