retrosheet: Import Professional Baseball Data from 'Retrosheet'

A collection of tools to import and structure the (currently) single-season event, game-log, roster, and schedule data available from <>. In particular, the event (a.k.a. play-by-play) files can be especially difficult to parse. This package does the parsing on those files, returning the requested data in the most practical R structure to use for sabermetric or other analyses.

Getting started

Package details

AuthorColin Douglas [aut, cre, cph], Richard Scriven [aut, cph]
MaintainerColin Douglas <>
LicenseGPL (>= 2)
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the retrosheet package in your browser

Any scripts or data that you put into this service are public.

retrosheet documentation built on Sept. 16, 2021, 9:07 a.m.