Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MLBattend

Major league baseball attendance data


Description

Data on home-game attendance in Major League Baseball for the years 1969-2000.

Usage

data(MLBattend)

Format

A data frame with 838 observations on the following 10 variables.

franchise

Which team

league

American or National league

division

Which division

year

The year (the year 2000 is recorded as 0)

attendance

Actual attendance

runs.scored

Runs scored by the team during year

runs.allowed

Runs allows by the team during year

wins

Number of wins for season

losses

Number of losses for season

games.behind

A measure of how far from division winner the team was. Higher numbers are worse.

Source

This data was submitted to The Journal of Statistical Education by James J. Cochran, http://www.amstat.org/publications/jse/v10n2/datasets.cochran.html.

Examples

data(MLBattend)
boxplot(attendance ~ franchise, MLBattend)
with(MLBattend, cor(attendance,wins))

UsingR

Data Sets, Etc. for the Text "Using R for Introductory Statistics", Second Edition

v2.0-6
GPL (>= 2)
Authors
John Verzani <verzani@math.csi.cuny.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.