Learn R Programming

fueleconomy (version 1.0.0)

vehicles: 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

Arguments

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

Examples

Run this code
# NOT RUN {
if (require("dplyr")) {
vehicles
vehicles %>% group_by(year) %>% summarise(cty = mean(cty))
}

# }

Run the code above in your browser using DataLab