R Library for Sean Lahman's Baseball Database
Version: 10.0-1 Date: 2022-04-07
- Chris Dalzell
- Michael Friendly
- Dennis Murphy
- Martin Monkman
- Vanessa Foot & Justeena Zaki-Azat [vignettes]
Maintainer: Chris Dalzell
Copyright: Sean Lahman
Required: R (>= 3.5.0)
This is the R version of the 2021 edition of Sean Lahman's Baseball Database, https://www.seanlahman.com/baseball-archive/statistics/.
- It now fully reflects the reorganization of data tables in Lahman's source,
the most notable was the renaming of the old
Peoplein the Lahman Database.
The current database schema is shown in the figure below:
A collection of vignettes has been added, illustrating various data manipulation tasks and analyses to explore some baseball questions. Try:
In addition, the documentation has been updated to use
tidyrtools for database manipulation and
For the current CRAN version, simply use:
If you wish to use a non-release version of
dev_mode() install_github("cdalzell/Lahman", ref="insert_branch_name_here") # ...test ... dev_mode() # revert to previous
Please report any problems or issues with this new version as an issue on this site.
A MySQL version of the Lahman database is provided by Nat Dunn: https://github.com/WebucatorTraining/lahman-baseball-mysql
The BaseballDBR package works with
Lahman& other baseball databases and provides some functions to compute other baseball metrics.
The Baseball with R blog contains analyses of baseball data stemming from the book Analyzing Baseball Data with R (CRC Press, 2014).