← Selected projects

NBAR

An NBA data pipeline packaged for use in R. I connected scheduled box-score collection, data cleaning, and package distribution so the analysis starts with reusable data.

View source on GitHub

The question

Comparing player performance with betting lines needs consistent historical data. A one-time notebook can answer a question about one snapshot; this project focuses on preparing data for repeated analysis.

Collection and packaging

Scheduled GitHub Actions collect NBA box scores. Cleaning and preprocessing turn those records into data distributed with an R package, alongside the functions used to analyze them. The repository includes package metadata, exported functions, and testthat tests.

The package can be installed from GitHub. This makes the work usable outside the original development environment without asking another person to reconstruct the scraping and cleaning steps.

What I took from it

The main contribution is the path from collection to reusable data. Scheduling, packaging, and testing are part of the analysis tool, rather than setup work each user has to repeat. The project supports exploratory analysis; it does not establish profitable betting performance.