MLBattend | R Documentation |
Data on home-game attendance in Major League Baseball for the years 1969-2000.
data(MLBattend)
A data frame with 838 observations on the following 10 variables.
Which team
American or National league
Which division
The year (the year 2000 is recorded as 0)
Actual attendance
Runs scored by the team during year
Runs allows by the team during year
Number of wins for season
Number of losses for season
A measure of how far from division winner the team was. Higher numbers are worse.
This data was submitted to The Journal of Statistical Education by James J. Cochran, http://jse.amstat.org/v10n2/datasets.cochran.html.
data(MLBattend) boxplot(attendance ~ franchise, MLBattend) with(MLBattend, cor(attendance,wins))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.