powered by
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.
# NOT RUN { data(MLBattend) boxplot(attendance ~ franchise, MLBattend) with(MLBattend, cor(attendance,wins)) # }
Run the code above in your browser using DataLab