A data set containing model year 2017 vehicles for sale in the United States.
data(auto17)
A data frame with 1216 rows and 21 variables:
DOT vehicle ID number
vehicle manufacturer
vehicle brand
vehicle name
vehicle type, numeric
vehicle type, string
fuel economy, city
fuel economy, highway
fuel economy, combined
poor fuel economy
fuel, abbrev.
fuel, full
estimated fuel cost
engine displacement
transmission, full
transmission, abbrev.
number of gears
number of cylinders
air aspiration method
vehicle drive type, abbrev.
vehicle drive type, full
https://www.fueleconomy.gov/feg/download.shtml
str(auto17)
#> 'data.frame': 1216 obs. of 21 variables:
#> $ id : int 20889 20887 20913 20915 20602 21288 20607 20573 20578 20413 ...
#> $ mfr : chr "Aston Martin Lagonda Ltd" "Aston Martin Lagonda Ltd" "Aston Martin Lagonda Ltd" "Aston Martin Lagonda Ltd" ...
#> $ mfrDivision: chr "Aston Martin" "Aston Martin" "Aston Martin" "Aston Martin" ...
#> $ carLine : chr "Rapide S" "V12 Vantage S" "V12 Vantage S" "Vanquish, S and Zagato" ...
#> $ carClass : int 3 1 1 2 3 3 3 3 3 4 ...
#> $ carClassStr: chr "Subcompact Cars" "Two Seaters" "Two Seaters" "Minicompact Cars" ...
#> $ cityFE : int 14 12 10 13 23 24 21 23 24 23 ...
#> $ hwyFE : int 21 18 16 21 34 35 32 33 33 35 ...
#> $ combFE : int 17 14 12 16 27 28 25 26 27 28 ...
#> $ guzzlerStr : chr "G" "G" "G" "G" ...
#> $ fuelStr : chr "GP" "GP" "GP" "GP" ...
#> $ fuelStr2 : chr "Gasoline (Premium Unleaded Recommended)" "Gasoline (Premium Unleaded Recommended)" "Gasoline (Premium Unleaded Recommended)" "Gasoline (Premium Unleaded Recommended)" ...
#> $ fuelCost : int 2450 3000 3500 2600 1550 1500 1700 1600 1550 1500 ...
#> $ displ : num 6 6 6 6 2 2 2 2 2 2 ...
#> $ transStr : chr "Auto(S8)" "Auto(AM7)" "Manual(M7)" "Auto(S8)" ...
#> $ transStr2 : chr "SA" "AM" "M" "SA" ...
#> $ gears : int 8 7 7 8 8 8 6 8 8 8 ...
#> $ cyl : int 12 12 12 12 4 4 4 4 4 4 ...
#> $ airAsp : chr "Naturally Aspirated" "Naturally Aspirated" "Naturally Aspirated" "Naturally Aspirated" ...
#> $ driveStr : chr "R" "R" "R" "R" ...
#> $ driveStr2 : chr "2-Wheel Drive, Rear" "2-Wheel Drive, Rear" "2-Wheel Drive, Rear" "2-Wheel Drive, Rear" ...
head(auto17)
#> id mfr mfrDivision carLine carClass
#> 1 20889 Aston Martin Lagonda Ltd Aston Martin Rapide S 3
#> 2 20887 Aston Martin Lagonda Ltd Aston Martin V12 Vantage S 1
#> 3 20913 Aston Martin Lagonda Ltd Aston Martin V12 Vantage S 1
#> 4 20915 Aston Martin Lagonda Ltd Aston Martin Vanquish, S and Zagato 2
#> 5 20602 BMW BMW 230i Convertible 3
#> 6 21288 BMW BMW 230i Coupe 3
#> carClassStr cityFE hwyFE combFE guzzlerStr fuelStr
#> 1 Subcompact Cars 14 21 17 G GP
#> 2 Two Seaters 12 18 14 G GP
#> 3 Two Seaters 10 16 12 G GP
#> 4 Minicompact Cars 13 21 16 G GP
#> 5 Subcompact Cars 23 34 27 GP
#> 6 Subcompact Cars 24 35 28 GP
#> fuelStr2 fuelCost displ transStr transStr2
#> 1 Gasoline (Premium Unleaded Recommended) 2450 6 Auto(S8) SA
#> 2 Gasoline (Premium Unleaded Recommended) 3000 6 Auto(AM7) AM
#> 3 Gasoline (Premium Unleaded Recommended) 3500 6 Manual(M7) M
#> 4 Gasoline (Premium Unleaded Recommended) 2600 6 Auto(S8) SA
#> 5 Gasoline (Premium Unleaded Recommended) 1550 2 Auto(S8) SA
#> 6 Gasoline (Premium Unleaded Recommended) 1500 2 Auto(S8) SA
#> gears cyl airAsp driveStr driveStr2
#> 1 8 12 Naturally Aspirated R 2-Wheel Drive, Rear
#> 2 7 12 Naturally Aspirated R 2-Wheel Drive, Rear
#> 3 7 12 Naturally Aspirated R 2-Wheel Drive, Rear
#> 4 8 12 Naturally Aspirated R 2-Wheel Drive, Rear
#> 5 8 4 Turbocharged R 2-Wheel Drive, Rear
#> 6 8 4 Turbocharged R 2-Wheel Drive, Rear