vehicles {fueleconomy} | R Documentation |
Vehicle data
Description
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)
Usage
vehicles
Format
A data frame with variables:
- id
Unique EPA identifier
- make
Manufacturer
- model
Model name
- year
Model year
- class
EPA vehicle size class, http://www.fueleconomy.gov/feg/ws/wsData.shtml#VClass
- trans
Transmission
- drive
Drive train
- cyl
Number of cylinders
- displ
Engine displacement, in litres
- fuel
Fuel type
- hwy
Highway fuel economy, in mpg
- cty
City fuel economy, in mpg
Source
http://www.fueleconomy.gov/feg/download.shtml
Examples
if (require("dplyr")) {
vehicles
vehicles %>% group_by(year) %>% summarise(cty = mean(cty))
}
[Package fueleconomy version 1.0.0 Index]