Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€ Thompson Basketball Intelligence

A modular NBA Basketball Operations decision-support platform built with R Shiny, designed to simulate the types of tools used by professional basketball front offices.

Built as part of my basketball analytics portfolio to demonstrate practical applications of roster management, salary cap strategy, contract analysis, and executive reporting.


Features

πŸ“Š Executive Dashboard

  • Team payroll overview
  • Salary cap summary
  • Contract distribution
  • Roster composition
  • Executive-level KPIs
image

πŸ‘₯ Roster Intelligence

  • Complete roster management
  • Contract status
  • Years remaining
  • Remaining guaranteed salary
  • Two-Way Contracts
  • Exhibit 10 Contracts
  • Qualifying Offers
  • Restricted Free Agents
image

πŸ’° Salary Cap Intelligence

  • Team payroll
  • Salary Cap
  • Luxury Tax
  • First Apron
  • Second Apron
  • Player salary as % of cap
  • Payroll threshold visualization
image

πŸ”„ Trade Intelligence

  • Trade matching
  • Incoming / outgoing salary
  • Cap impact
  • Trade simulation framework

πŸ“ Draft Intelligence

  • Draft asset tracking
  • Future first-round picks
  • Future second-round picks

✍️ Extension Simulator

  • Contract extension projections
  • Payroll impact
  • Multi-year planning

πŸ“ˆ Five-Year Outlook

  • Future payroll projections
  • Contract expirations
  • Long-term cap planning

πŸ€ Depth Chart

  • Position-by-position roster view
  • Starter visualization
  • Rotation planning
  • Position eligibility

Tech Stack

  • R
  • Shiny
  • golem
  • SQLite
  • DuckDB
  • tidyverse
  • DT
  • bs4Dash

Project Roadmap

βœ… Executive Dashboard βœ… Salary Cap Intelligence βœ… Trade Analyzer βœ… Roster Intelligence βœ… Draft Assets βœ… Extension Simulator βœ… Five-Year Outlook βœ… Depth Chart

🚧 Free Agency Planner 🚧 Trade Machine 2.0 🚧 Player Similarity Engine 🚧 Draft Pick Valuation 🚧 Lineup Optimization

Future Enhancements

  • Player similarity search
  • CBA Worded Explanations
  • Trade optimization
  • Draft pick valuation
  • Lineup optimization
  • Injury impact analysis
  • Free agency planner
  • AI-powered executive summaries

Project Structure

basketball-operations-platform
β”‚
β”œβ”€β”€ R/
β”‚   β”œβ”€β”€ Executive Dashboard
β”‚   β”œβ”€β”€ Salary Cap Intelligence
β”‚   β”œβ”€β”€ Trade Intelligence
β”‚   β”œβ”€β”€ Roster Intelligence
β”‚   β”œβ”€β”€ Draft Intelligence
β”‚   β”œβ”€β”€ Extension Simulator
β”‚   β”œβ”€β”€ Five-Year Outlook
β”‚   └── Depth Chart
β”‚
β”œβ”€β”€ inst/
β”œβ”€β”€ data/
β”œβ”€β”€ tests/
β”œβ”€β”€ docs/
└── renv/

Installation and Setup

Requirements

Before running Thompson Basketball Intelligence, install:

  • R 4.3 or newer
  • RStudio
  • Git

1. Clone the Repository

Open Git Bash or a terminal and run:

git clone https://github.com/DannyTData/basketball-operations-platform.git

Move into the project folder:

cd basketball-operations-platform

2. Open the RStudio Project

Open:

basketball-operations-platform.Rproj

RStudio should automatically recognize the project environment.

3. Restore the Required Packages

In the RStudio Console, run:

install.packages("renv")
renv::restore()

The restoration process may take several minutes because it installs the package versions used to build the application.

4. Run the Application

From the RStudio Console, run:

golem::run_dev()

The application should open in the RStudio Viewer or your default web browser.

Alternative Run Method

The application can also be started with:

source("dev/run_dev.R")

Troubleshooting

Missing golem

install.packages("golem")
library(golem)
golem::run_dev()

Missing renv

install.packages("renv")
renv::restore()

Missing database packages

install.packages(c(
  "DBI",
  "RSQLite",
  "duckdb"
))

Package restoration problems

Restart the R session:

Session β†’ Restart R

Then run:

renv::restore()

Application does not open automatically

Run:

options(shiny.launch.browser = TRUE)
golem::run_dev()

Data Disclaimer

TBI is a portfolio and educational project. Salary, roster, contract, draft, and transaction information may include demonstration data or planning assumptions and should not be treated as an official NBA source.

Clone the repository

git clone https://github.com/DannyTData/basketball-operations-platform.git

Open the project

basketball-operations-platform.Rproj

Restore packages

renv::restore()

Run the application

golem::run_dev()

Purpose

This project was created to demonstrate the types of analytical tools used inside an NBA Basketball Operations department.

Rather than building isolated analytics models, this platform integrates multiple basketball decision-support modules into a single application.

The project emphasizes:

  • Basketball Operations
  • Salary Cap Management
  • Roster Construction
  • Contract Planning
  • Executive Reporting
  • Decision Support

Future Enhancements

  • Player similarity models
  • Trade value model
  • Draft pick valuation
  • Lineup optimization
  • Player projection models
  • Injury impact analysis
  • Team comparison dashboard
  • Automated roster updates

About Me

I'm passionate about combining basketball knowledge with data analytics to build tools that support basketball decision-making.

My interests include:

  • Basketball Operations
  • Basketball Analytics
  • Salary Cap Strategy
  • R Programming
  • SQL
  • Data Visualization
  • Predictive Modeling

GitHub: https://github.com/DannyTData

LinkedIn: (https://www.linkedin.com/in/danny-f-thompson/)


License

This project is provided for educational and portfolio purposes.

About

Thompson Basketball Intelligence (TBI) is a modular Basketball Operations platform built with R Shiny that combines roster management, salary cap analysis, trade evaluation, draft assets, executive dashboards, and decision-support tools into a unified front-office analytics application.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages