retrosheet

Import Retrosheet data as a structured R object

retrosheet is an R package that downloads and parses the single-season event, gamelog, roster, and schedule files from retrosheet.org into structured R objects for further analysis.

Note: As of retrosheet 1.1.0, this repo contains the version available on CRAN. Older versions can be found here.

Installation

retrosheet can be installed from CRAN, or development versions installed from Github.

# Install from CRAN
install.packages("retrosheet")

# Install development version from Github
# install.packages("devtools")
# devtools::install_github("colindouglas/retrosheet")
install.packages("retrosheet", repos = c('https://colindouglas.r-universe.dev', 'https://cloud.r-project.org'))

Usage

Also included are convenience functions