Learn R Programming

DoubleCone (version 1.1)

derby: Kentucky Derby Winner Speed

Description

The Speeds of the Winning Horses in the Kentucky Derby, 1896-2012

Usage

data(derby)

Arguments

Format

A data frame with 117 observations on the following 4 variables.

speed

winning speed

year

year of race

cond

track condition with levels fast good heav mudd slop slow

name

Name of the winning horse

Examples

Run this code
# NOT RUN {
data(derby)
n=length(derby$year)
track=1:n*0+1
track[derby$cond=="good"]=2
track[derby$cond=="fast"]=3
plot(derby$year,derby$speed,col=track)
# }

Run the code above in your browser using DataLab