Learn R Programming

openintro (version 2.4.0)

nyc_marathon: New York City Marathon Times

Description

Marathon times of runners in the Men and Women divisions of the New York City Marathon, 1970 - 2020.

Usage

nyc_marathon

Arguments

Format

A data frame with 102 observations on the following 7 variables.

year

Year of marathom.

name

Name of winner.

country

Country of winner.

time

Running time (HH:MM:SS).

time_hrs

Running time (in hours).

division

Division: Men or Women.

note

Note about the race or the winning time.

Examples

Run this code
library(ggplot2)

ggplot(nyc_marathon, aes(x = year, y = time_hrs, color = division, shape = division)) +
  geom_point()

Run the code above in your browser using DataLab