Sean 'Lahman' Baseball Database

Provides the tables from the 'Sean Lahman Baseball Database' as a set of R data.frames. It uses the data on pitching, hitting and fielding performance and other tables from 1871 through 2015, as recorded in the 2016 version of the database.


Version 6.0-0 (2017-08-07)

o Updated with data for the 2016 season

Version 5.0-0 (2016-08-08)

o Updated with data for the 2015 season, plus numerous corrections of errors and inconsistencies discovered in previous tables.

o Documentation examples are now provided for all data tables [Martin Monkman]

o Documentation examples were rewrittten to make extensive use of dplyr for data manipulation and ggplot2 for graphics [Denis Murphy]

Version 4.0-1 (2015-09-04)

o Updated with data for the 2014 season o Changes to reflect alterations in the 2014 schema: o Removed from Batting: G_batting, G_old o Replaced SchoolsPlayers with CollegePlaying

Version 3.0-0 (2014-07-20)

o Updated with data for the 2013 season o Changes to reflect alterations in the 2013 schema: o HallOfFame$hofID is now HallOfFame$playerID o managerID is now playerID in all tables o Removed from Master: managerID, hofID, holtzID, lahmanID, lahman40ID, lahman45ID, nameNote, nameNick, and college

Version 2.0-3 (2013-05-29)

o largest RData files are now compressed via R CMD build --resave-data

Version 2.0-2 (2013-05-23) o Fixed problems with the Teams*.RData files not having been updated to the 2012 versions. o The project for this package now has a web page at

Version 2.0-1 (2013-04-18)

o Added Label() and data frames for variable labels o Added more examples and plots to Salaries, Pitching, etc. from Dennis Murphy o Master$bats, Master$throws made into factors o Added some examples to Schools.Rd

Version 2.0-0 (2013-04-08)

o New major version, now reflecting the 2012 Lahman database. Some deprecated or defunct tables were dropped. o readLahman.R added to inst/scripts for documentation of how the data files were created. The scripts there can be used to simplify future updates. o More examples added to various datasets

Version 1.0-10 (2012-10-04)

o Fixed deprecated warnings stemming from changes in ggplot2

Version 1.0-8 (2011-10-02) o Added examples in HallOfFame.Rd o Fixed definitions of BABIP and OBP in battingStats() o Added examples in Manager.Rd

Version 1.0-7 (2011-09-27) o Extended examples in Batting.Rd o Initial release to CRAN

Version 1.0-6 (2011-09-26) o Added battingStats() function to calculate BA and friends

Version 1.0-5 (2011-09-25) o Added [email protected] in DESCRIPTION for R 2.14.x o Fixed Appearances table o Added demo/batting-summstats.R o Added a few examples to various files o Initial export to R-Forge

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


6.0-0 by Chris Dalzell, a year ago

Browse source code at

Authors: Michael Friendly [aut], Dennis Murphy [ctb], Martin Monkman [ctb], Chris Dalzell [cre, ctb]

Documentation:   PDF Manual  

GPL license

Imports dplyr

Suggests lattice, ggplot2, googleVis, data.table, vcd, reshape2, tidyr, zipcode

Suggested by baseballDBR, broom, dbplyr, dplyr, dtplyr, implyr, mdsr,, poplite, raw, sparklyr, teamcolors.

See at CRAN