Introduction

The data files used here were obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org".

News

  • Version 2.5 is available - improved SeasonPlot and fixed Matchup. Also added Doubles, Triples, HomeRuns and IPHomeRuns functions. BaseballPalette[ ]. is available. Documentation now included. (June 2009)
  • Pitch Calls of 2007 - see which umpires have the smallest/largest strike zones
  • Examples posted on this site only cover Version 1 of the package. More examples are included in documentation that come with the package.

The objective of this project is to use the power of Mathematica to manipulate files that have been made available through retrosheet.org in order to do baseball research.   

Bugs:  If you find a bug please send a Notebook with at least one expression illustrates the bug.  Fixes are welcome too!

Programming Contributions:  If you have a function that you would like to add to the package in its next version, send a Notebook with a definition of the function (outside the package context)  and examples of tests you have performed to test it.   You are encouraged to make use of the currently defined functions as much as possible.   A usage statement and error messages (if appropriate)  with standard formats.

Examples:

Events :: usage = "Events[teamcode,year] returns the list of events for for home games ofteamcode in year." ;

EventFile::"invalidyear"="No event file is available for the year `1`.";


Known bugs in the current release.
- Pitch count doesn't take into account at-bats that are interrupted by running plays such as stolen bases, so pitch counts are actually higher for some at-bats.


Valid XHTML 1.1!