brewers1982 {npsm}R Documentation

Basic Summaries of Boxscores for the Milwaukee Brewers 1982 Season

Description

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.

Usage

data("brewers1982")

Format

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

Examples

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')

[Package npsm version 2.0.0 Index]