brewers1982 | R Documentation |
Basic Summaries of Boxscores for the Major League Baseball team Milwaukee (WI) Brewers 1982 Season. The Brewers won the American League championship that year. Brewer, Robin Yount won the Most Valueable Player (MVP) award. #Robin Yount. MVP.
data("brewers1982")
A data frame with 163 observations on the following 8 variables.
Date
a character vector
Opp
a character vector
R
a numeric vector
RA
a numeric vector
Time
a character vector
Attendance
a numeric vector
home
a logical vector
win
a logical vector
data(brewers1982)
# proportion of wins for a given number of runs scored
pwin <- with(brewers1982,tapply(win,R,mean))
pwin
# graphical display of the above
plot(names(pwin),pwin,xlab='Runs', ylab='Proportion of Wins',main='Brewers 1982')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.