Award voting for managers awards
A data frame with 425 observations on the following 7 variables.
name of award votes were received for
League; a factor with levels
Manager (player) ID code
Number of points received
Maximum number of points possible
Number of first place votes
Lahman, S. (2021) Lahman's Baseball Database, 1871-2021, 2021 version, https://www.seanlahman.com/baseball-archive/statistics/
# Voting for the BBWAA Manager of the Year award by year and league require("dplyr") # Sort in decreasing order of points by year and league AwardsShareManagers %>% group_by(yearID, lgID) %>% arrange(desc(pointsWon)) # Any unanimous winners? AwardsShareManagers %>% filter(pointsWon == pointsMax) # Manager with highest proportion of possible points AwardsShareManagers %>% mutate(propWon = pointsWon/pointsMax) %>% arrange(desc(propWon)) %>% head(., 1) # Bobby Cox's MOY vote tallies AwardsShareManagers %>% filter(playerID == "coxbo01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.