powered by
Fuel economy data from the EPA, 1985-2015. This dataset contains selected varaibles, and removes vehicles with incomplete data (e.g. no drive train data)
vehicles
A data frame with variables:
Unique EPA identifier
Manufacturer
Model name
Model year
EPA vehicle size class, http://www.fueleconomy.gov/feg/ws/wsData.shtml#VClass
Transmission
Drive train
Number of cylinders
Engine displacement, in litres
Fuel type
Highway fuel economy, in mpg
City fuel economy, in mpg
# NOT RUN { if (require("dplyr")) { vehicles vehicles %>% group_by(year) %>% summarise(cty = mean(cty)) } # }
Run the code above in your browser using DataLab