Learn R Programming

Lahman (version 12.0-0)

AwardsManagers: AwardsManagers table

Description

Award information for managers awards

Usage

data(AwardsManagers)

Arguments

Format

A data frame with 193 observations on the following 6 variables.

playerID

Manager (player) ID code

awardID

Name of award won

yearID

Year

lgID

League; a factor with levels AL NL

tie

Award was a tie (Y or N)

notes

Notes about the award

Examples

Run this code
# Post-season managerial awards

# Number of recipients of each award by year
with(AwardsManagers, table(yearID, awardID))

# 1996 award winners
subset(AwardsManagers, yearID == 1996)

# AL winners of the BBWAA managerial award
subset(AwardsManagers, awardID == "BBWAA Manager of the year" &
                          lgID == "AL")

# Tony LaRussa's manager of the year awards
subset(AwardsManagers, playerID == "larusto01")

Run the code above in your browser using DataLab