AwardsShareManagers {Lahman} | R Documentation

## AwardsShareManagers table

### Description

Award voting for managers awards

### Usage

    data(AwardsShareManagers)

### Format

A data frame with 401 observations on the following 7 variables.

`awardID`

  name of award votes were received for

`yearID`

  Year

`lgID`

  League; a factor with levels `AL` `NL`

`playerID`

  Manager (player) ID code

`pointsWon`

  Number of points received

`pointsMax`

  Maximum numner of points possible

`votesFirst`

  Number of first place votes

### Source

Lahman, S. (2015) Lahman's Baseball Database, 1871-2014, 2015 version, http://baseball1.com/statistics/

### Examples

    # Voting for the BBWAA Manager of the Year award by year and league

    require(plyr)

    # Sort in decreasing order of points by year and league
    MOYsort <- ddply(AwardsShareManagers, .(yearID, lgID), arrange, desc(pointsWon))

    # Any unanimous winners?
    subset(AwardsShareManagers, pointsWon == pointsMax)

    # OK, how about highest proportion of possible points?
    AwardsShareManagers[with(AwardsShareManagers, which.max(pointsWon/pointsMax)), ]

    # Bobby Cox's MOY vote tallies
    subset(AwardsShareManagers, playerID == "coxbo01")

[Package Lahman version 4.0-1 Index]