{"id":22117180,"url":"https://github.com/sportsdataverse/hoopr","last_synced_at":"2025-04-06T02:12:15.579Z","repository":{"id":37830346,"uuid":"288914818","full_name":"sportsdataverse/hoopR","owner":"sportsdataverse","description":"An R package to quickly obtain clean and tidy men's basketball play by play data.","archived":false,"fork":false,"pushed_at":"2024-05-07T23:23:27.000Z","size":41397,"stargazers_count":91,"open_issues_count":39,"forks_count":20,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-03-30T01:11:10.536Z","etag":null,"topics":["basketball","college-basketball","espn","kenpom","nba","nba-analytics","nba-api","nba-data","nba-statistics","nba-stats","nba-stats-api","ncaa","ncaa-basketball","ncaa-bracket","ncaa-players","ncaa-ratings","ncaam","r","sportsdataverse"],"latest_commit_sha":null,"homepage":"http://hoopr.sportsdataverse.org/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sportsdataverse.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-20T05:29:36.000Z","updated_at":"2025-02-24T20:45:42.000Z","dependencies_parsed_at":"2022-06-22T20:03:22.376Z","dependency_job_id":"3e19d155-b054-4917-8361-e00cea524261","html_url":"https://github.com/sportsdataverse/hoopR","commit_stats":{"total_commits":397,"total_committers":23,"mean_commits":17.26086956521739,"dds":0.08312342569269526,"last_synced_commit":"6f7536e9a94647a0f08d08560bc46db6555e9c16"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sportsdataverse%2FhoopR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sportsdataverse%2FhoopR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sportsdataverse%2FhoopR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sportsdataverse%2FhoopR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sportsdataverse","download_url":"https://codeload.github.com/sportsdataverse/hoopR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423516,"owners_count":20936626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basketball","college-basketball","espn","kenpom","nba","nba-analytics","nba-api","nba-data","nba-statistics","nba-stats","nba-stats-api","ncaa","ncaa-basketball","ncaa-bracket","ncaa-players","ncaa-ratings","ncaam","r","sportsdataverse"],"created_at":"2024-12-01T13:29:34.867Z","updated_at":"2025-04-06T02:12:15.551Z","avatar_url":"https://github.com/sportsdataverse.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n#\n\n# hoopR \u003ca href='https://hoopR.sportsdataverse.org/'\u003e\u003cimg src=\"https://raw.githubusercontent.com/sportsdataverse/hoopR/main/logo.png\" align=\"right\"  width=\"20%\" min-width=\"100px\"/\u003e\u003c/a\u003e\n```{r setup, include = FALSE}\nrequire(knitr)\nif (!requireNamespace('pacman')){\n  install.packages('pacman')\n}\npacman::p_load(dplyr)\n\nopts_template$set(stripfigure = list(fig.height = 8, out.width = \"95%\"))\n\n```\n\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN status](https://img.shields.io/badge/dynamic/json?style=for-the-badge\u0026color=success\u0026label=CRAN%20version\u0026prefix=v\u0026query=%24.Version\u0026url=https%3A%2F%2Fcrandb.r-pkg.org%2FhoopR)](https://CRAN.R-project.org/package=hoopR)\n[![CRAN downloads](https://img.shields.io/badge/dynamic/json?style=for-the-badge\u0026color=success\u0026label=Downloads\u0026query=%24%5B0%5D.downloads\u0026url=https%3A%2F%2Fcranlogs.r-pkg.org%2Fdownloads%2Ftotal%2F2021-10-26%3Alast-day%2FhoopR)](https://CRAN.R-project.org/package=hoopR)\n[![Version-Number](https://img.shields.io/github/r-package/v/sportsdataverse/hoopR?label=hoopR\u0026logo=R\u0026style=for-the-badge)](https://github.com/sportsdataverse/hoopR)  [![R-CMD-check](https://img.shields.io/github/actions/workflow/status/sportsdataverse/hoopR/R-CMD-check.yaml?branch=main\u0026label=R-CMD-Check\u0026logo=R\u0026logoColor=white\u0026style=for-the-badge)](https://github.com/sportsdataverse/hoopR/actions/workflows/R-CMD-check.yaml) [![Lifecycle:maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg?style=for-the-badge\u0026logo=github)](https://github.com/sportsdataverse/hoopR/) \n\u003c!-- [![Twitter Follow](https://img.shields.io/twitter/follow/saiemgilani?color=blue\u0026label=%40saiemgilani\u0026logo=twitter\u0026style=for-the-badge)](https://twitter.com/saiemgilani) [![Twitter Follow](https://img.shields.io/twitter/follow/SportsDataverse?color=blue\u0026label=%40SportsDataverse\u0026logo=twitter\u0026style=for-the-badge)](https://twitter.com/SportsDataverse)  --\u003e\n[![Contributors](https://img.shields.io/github/contributors/sportsdataverse/hoopR?style=for-the-badge)](https://github.com/sportsdataverse/hoopR/graphs/contributors)\n\u003c!-- badges: end --\u003e\n\n[**`hoopR`**](https://hoopR.sportsdataverse.org/) is an R package for working with men's basketball data. \n\nThe package has functions to access **live play by play and box score** data from ESPN with shot locations when available. As of version 1.3.0, [**`hoopR`**](https://hoopR.sportsdataverse.org/) is also a full NBA Stats API wrapper with 127 functions added in this release.\n\nIt is additionally a scraping and aggregating interface for Ken Pomeroy's men's college basketball statistics website, [kenpom.com](https://kenpom.com/). It provides users with an active subscription the capability to scrape the website tables and analyze the data for themselves.\n\n## Installation\n\nYou can install the CRAN version of [**```hoopR```** ](https://CRAN.R-project.org/package=hoopR) with:\n```{r readme_cran_install, eval=FALSE}\ninstall.packages(\"hoopR\")\n```\n\nYou can install the released version of [**`hoopR`**](https://github.com/sportsdataverse/hoopR/) from [GitHub](https://github.com/sportsdataverse/hoopR) with:\n\n```{r readme_pacman_install, eval=FALSE}\n# You can install using the pacman package using the following code:\nif (!requireNamespace('pacman', quietly = TRUE)){\n  install.packages('pacman')\n}\npacman::p_load_current_gh(\"sportsdataverse/hoopR\", dependencies = TRUE, update = TRUE)\n```\n\n## Quick Start\n\n### **NBA full play-by-play seasons (2002-`r hoopR::most_recent_nba_season()`) ~ 1-2 minutes**\n```{r nba_load_pbp_readme}\ntictoc::tic()\nprogressr::with_progress({\n  nba_pbp \u003c- hoopR::load_nba_pbp()\n})\ntictoc::toc()\n```\n```{r nba_pbp_message, echo = FALSE}\nglue::glue(\"{nrow(nba_pbp)} rows of NBA play-by-play data from {length(unique(nba_pbp$game_id))} games.\")\n```\n\n### **Men's college basketball full play-by-play seasons (2006-`r hoopR::most_recent_mbb_season()`) ~ 2-3 minutes**\n```{r mbb_load_pbp_readme}\n\ntictoc::tic()\nprogressr::with_progress({\n  mbb_pbp \u003c-  hoopR::load_mbb_pbp()\n})\ntictoc::toc()\n```\n\n```{r mbb_pbp_message, echo = FALSE}\nglue::glue(\"{nrow(mbb_pbp)} rows of men's college basketball play-by-play data from {length(unique(mbb_pbp$game_id))} games.\")\n```\n\n## **Documentation**\n\nFor more information on the package and function reference, please see the  [**`hoopR`** documentation website](https://hoopR.sportsdataverse.org).\n\n## **Breaking Changes**\n\n[**Full News on Releases**](https://hoopR.sportsdataverse.org/news/index.html)\n\n\n## Follow the SportsDataverse (@SportsDataverse) on Twitter and star this repo\n\n\u003c!-- [![Twitter Follow](https://img.shields.io/twitter/follow/SportsDataverse?color=blue\u0026label=%40SportsDataverse\u0026logo=twitter\u0026style=for-the-badge)](https://twitter.com/SportsDataverse)  --\u003e\n\n[![GitHub stars](https://img.shields.io/github/stars/sportsdataverse/hoopR.svg?color=eee\u0026logo=github\u0026style=for-the-badge\u0026label=Star%20hoopR\u0026maxAge=2592000)](https://github.com/sportsdataverse/hoopR/stargazers/)\n\n\n## **Our Authors**\n\n-   Saiem Gilani (@saiemgilani)       \n\u003c!-- \u003ca href=\"https://twitter.com/saiemgilani\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/saiemgilani?color=blue\u0026label=%40saiemgilani\u0026logo=twitter\u0026style=for-the-badge\" alt=\"@saiemgilani\" /\u003e\u003c/a\u003e --\u003e\n\n\u003ca href=\"https://github.com/saiemgilani\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/saiemgilani?color=eee\u0026logo=Github\u0026style=for-the-badge\" alt=\"@saiemgilani\" /\u003e\u003c/a\u003e\n\n## **Our Contributors (they're awesome)**\n\n-   Jason Lee (@theFirmAISports)       \n\u003c!-- \u003ca href=\"https://twitter.com/theFirmAISports\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/theFirmAISports?color=blue\u0026label=%40theFirmAISports\u0026logo=twitter\u0026style=for-the-badge\" alt=\"@theFirmAISports\" /\u003e\u003c/a\u003e --\u003e\n\u003ca href=\"https://github.com/papagorgio23\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/papagorgio23?color=eee\u0026logo=Github\u0026style=for-the-badge\" alt=\"@papagorgio23\" /\u003e\u003c/a\u003e\n\n-   Billy Fryer (@_b4billy_)\n\u003c!-- \u003ca href=\"https://twitter.com/_b4billy_\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/_b4billy_?color=blue\u0026label=%40_b4billy_\u0026logo=twitter\u0026style=for-the-badge\" alt=\"@_b4billy_\" /\u003e\u003c/a\u003e --\u003e\n\u003ca href=\"https://github.com/billyfryer\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/billyfryer?color=eee\u0026logo=Github\u0026style=for-the-badge\" alt=\"@billyfryer\" /\u003e\u003c/a\u003e\n\n-   Ross Drucker (@rossdrucker9)       \n\u003c!-- \u003ca href=\"https://twitter.com/rossdrucker9\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/rossdrucker9?color=blue\u0026label=%40rossdrucker9\u0026logo=twitter\u0026style=for-the-badge\" alt=\"@rossdrucker9\" /\u003e\u003c/a\u003e --\u003e\n\u003ca href=\"https://github.com/rossdrucker\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/rossdrucker?color=eee\u0026logo=Github\u0026style=for-the-badge\" alt=\"@rossdrucker\" /\u003e\u003c/a\u003e\n\n-   Vladislav Shufinskiy (@vshufinskiy)       \n\u003c!-- \u003ca href=\"https://twitter.com/vshufinskiy\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/vshufinskiy?color=blue\u0026label=%40vshufinskiy\u0026logo=twitter\u0026style=for-the-badge\" alt=\"@vshufinskiy\" /\u003e\u003c/a\u003e --\u003e\n\u003ca href=\"https://github.com/shufinskiy\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/shufinskiy?color=eee\u0026logo=Github\u0026style=for-the-badge\" alt=\"@shufinskiy\" /\u003e\u003c/a\u003e\n\n## **Citations**\n\nTo cite the [**`hoopR`**](https://hoopR.sportsdataverse.org) R package in publications, use:\n\nBibTex Citation\n```bibtex\n@misc{gilani_2021_hoopR,\n  author = {Gilani, Saiem},\n  title = {hoopR: The SportsDataverse's R Package for Men's Basketball Data.},\n  url = {https://hoopR.sportsdataverse.org},\n  year = {2021}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsportsdataverse%2Fhoopr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsportsdataverse%2Fhoopr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsportsdataverse%2Fhoopr/lists"}