vehicles: Vehicle data

Description Usage Format Source Examples

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

1

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

1
2
3
4
if (require("dplyr")) {
vehicles
vehicles %>% group_by(year) %>% summarise(cty = mean(cty))
}

fueleconomy documentation built on May 30, 2017, 3:32 a.m.