mtcars dataset with cyl, vs, am ,gear, carb as factor variables and car model names as id

mtcars2

Format

A data frame with 32 rows and 12 variables

mpg

Miles/(US) gallon

cyl

Number of cylinders

disp

Displacement (cu.in.)

hp

Gross horsepower

drat

Rear axle ratio

wt

Weight (1000 lbs)

qsec

1/4 mile time

vs

Engine

am

Transmission

gear

Number of forward gears

carb

Number of carburetors

ids

car model name

Source

datasets