| 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.
Datea character vector
Oppa character vector
Ra numeric vector
RAa numeric vector
Timea character vector
Attendancea numeric vector
homea logical vector
wina 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.