Deprecation Notice: The Master table is now the People table in the Lahman dataset. Master is now a copy of People and is being retained for backward compatibility. Please change your code to use the People table.
Master table - Player names, DOB, and biographical info. This file is to be used to get details
about players listed in the
Pitching, and other files
where players are identified only by
A data frame with 20093 observations on the following 26 variables.
A unique code assigned to each player. The
the data in this file with records on players in the other files.
Year player was born
Month player was born
Day player was born
Country where player was born
State where player was born
City where player was born
Year player died
Month player died
Day player died
Country where player died
State where player died
City where player died
Player's first name
Player's last name
Player's given name (typically first and middle)
Player's weight in pounds
Player's height in inches
a factor: Player's batting hand (left (L), right (R), or both (B))
a factor: Player's throwing hand (left(L) or right(R))
Date that player made first major league appearance
Date that player made first major league appearance (blank if still active)
ID used by retrosheet, https://www.retrosheet.org/
ID used by Baseball Reference website, https://www.baseball-reference.com/
Player's birthdate, in
Player's deathdate, in
finalGame were converted from character strings with
Lahman, S. (2021) Lahman's Baseball Database, 1871-2020, 2020 version, http://www.seanlahman.com/baseball-archive/statistics/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
data(Master); data(Batting) ## add player's name to Batting data Master$name <- paste(Master$nameFirst, Master$nameLast, sep=" ") batting <- merge(Batting, Master[,c("playerID","name")], by="playerID", all.x=TRUE) ## batting and throwing # right-handed batters are much less ambidexterous in throwing than left-handed batters # (should only include batters) BT <- with(Master, table(bats, throws)) require(vcd) structable(BT) mosaic(BT, shade=TRUE) ## Who is Shoeless Joe Jackson? subset(Master, nameLast=="Jackson" & nameFirst=="Joe") subset(Master, nameLast=="Jackson" & nameFirst=="Shoeless Joe") joeID <-c(subset(Master, nameLast=="Jackson" & nameFirst=="Shoeless Joe")["playerID"]) subset(Batting, playerID==joeID) subset(Fielding, playerID==joeID)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.