cfbfastr

An R package to quickly obtain clean and tidy college football play by play data

https://github.com/sportsdataverse/cfbfastr

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

cfb-data college-football college-football-players collegefootballdata-api espn football football-api football-data football-scores footballdata ncaaf r rstats sports sports-analytics sports-betting sports-data sports-stats sportsanalytics sportsdataverse

Keywords from Contributors

fantasy-football
Last synced: 6 months ago · JSON representation

Repository

An R package to quickly obtain clean and tidy college football play by play data

Basic Info
Statistics
  • Stars: 85
  • Watchers: 6
  • Forks: 11
  • Open Issues: 6
  • Releases: 10
Topics
cfb-data college-football college-football-players collegefootballdata-api espn football football-api football-data football-scores footballdata ncaaf r rstats sports sports-analytics sports-betting sports-data sports-stats sportsanalytics sportsdataverse
Created almost 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---

#

# **cfbfastR**  
```{r, include = FALSE}
require(knitr)
if (!requireNamespace('remotes')){
  install.packages('remotes', repos = "https://cloud.r-project.org")
}
install.packages(c("magick", "grid", "dplyr", "lubridate"), repos = "https://cloud.r-project.org")

```





[![CRAN version](https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=success&label=CRAN%20version&prefix=v&query=%24.Version&url=https%3A%2F%2Fcrandb.r-pkg.org%2FcfbfastR)](https://CRAN.R-project.org/package=cfbfastR)
[![CRAN downloads](https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=success&label=Downloads&query=%24%5B0%5D.downloads&url=https%3A%2F%2Fcranlogs.r-pkg.org%2Fdownloads%2Ftotal%2F2021-10-26%3Alast-day%2FcfbfastR)](https://CRAN.R-project.org/package=cfbfastR)
[![Version-Number](https://img.shields.io/github/r-package/v/sportsdataverse/cfbfastR?label=cfbfastR&logo=R&style=for-the-badge)](https://github.com/sportsdataverse/cfbfastR/)
[![R-CMD-check](https://img.shields.io/github/actions/workflow/status/sportsdataverse/cfbfastR/R-CMD-check.yaml?branch=main&label=R-CMD-Check&logo=R&logoColor=white&style=for-the-badge)](https://github.com/sportsdataverse/cfbfastR/actions/workflows/R-CMD-check.yaml) [![Lifecycle:maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg?style=for-the-badge&logo=github)](https://github.com/sportsdataverse/cfbfastR/)  [![Contributors](https://img.shields.io/github/contributors/sportsdataverse/cfbfastR?style=for-the-badge)](https://github.com/sportsdataverse/cfbfastR/graphs/contributors) [![Twitter Follow](https://img.shields.io/twitter/follow/cfbfastR?color=blue&label=%40cfbfastR&logo=x&style=for-the-badge)](https://x.com/cfbfastR) [![Twitter Follow](https://img.shields.io/twitter/follow/SportsDataverse?color=blue&label=%40SportsDataverse&logo=x&style=for-the-badge)](https://x.com/SportsDataverse)


The goal of [**```cfbfastR```**](https://cfbfastR.sportsdataverse.org/) is to provide the community with an R package for working with CFB data. It is an R API wrapper around [https://collegefootballdata.com/](https://collegefootballdata.com/). Beyond data aggregation and tidying ease, one of the multitude of services that [**```cfbfastR```**](https://cfbfastR.sportsdataverse.org/) provides is for benchmarking open-source expected points and win probability metrics.

## **Installation**

You can install the CRAN version of [**```cfbfastR```** ](https://CRAN.R-project.org/package=cfbfastR) with:
```r
install.packages("cfbfastR")
```

You can install the released version of [**```cfbfastR```**](https://github.com/sportsdataverse/cfbfastR/) from [GitHub](https://github.com/sportsdataverse/cfbfastR) with:

```r
# You can install using the pacman package using the following code:
if (!requireNamespace('remotes', quietly = TRUE)){
  install.packages('remotes', repos = "https://cloud.r-project.org")
}
remotes::install_github("sportsdataverse/cfbfastR")
```



## **Breaking Changes**

[**Full News on Releases**](https://cfbfastR.sportsdataverse.org/news/index.html)



#### **College Football Data API Keys**

The [CollegeFootballData API](https://collegefootballdata.com/) now requires an API key, here's a quick run-down:

* To get an API key, follow the directions here: [College Football Data Key Registration.](https://collegefootballdata.com/key)

* Using the key: You can save the key for consistent usage by adding `CFBD_API_KEY=YOUR-API-KEY-HERE` to your .Renviron file (easily accessed via [**`usethis::edit_r_environ()`**](https://usethis.r-lib.org/reference/edit.html)). Run [**`usethis::edit_r_environ()`**](https://usethis.r-lib.org/reference/edit.html), a new script will pop open named `.Renviron`, **THEN** paste the following in the new script that pops up (with**out** quotations)
```r
CFBD_API_KEY = YOUR-API-KEY-HERE
```
Save the script and restart your RStudio session, by clicking `Session` (in between `Plots` and `Build`) and click `Restart R` (there also exists the shortcut `Ctrl + Shift + F10` to restart your session). If set correctly, from then on you should be able to use any of the `cfbd_` functions without any other changes.

* For less consistent usage: At the beginning of every session or within an R environment, save your API key as the environment variable `CFBD_API_KEY` (with quotations) using a command like the following.

```{r}
Sys.setenv(CFBD_API_KEY = "YOUR-API-KEY-HERE")
```



## Follow [cfbfastR](https://x.com/cfbfastR) and the [SportsDataverse](https://x.com/SportsDataverse) on Twitter and star this repo

[![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/cfbfastR?style=for-the-badge&logo=x&label=%40cfbfastR&color=eee&link=https%3A%2F%2Fx.com%2FcfbfastR)](https://x.com/cfbfastR)
[![Twitter Follow](https://img.shields.io/twitter/follow/SportsDataverse?color=blue&label=%40SportsDataverse&logo=x&style=for-the-badge)](https://x.com/SportsDataverse)

[![GitHub stars](https://img.shields.io/github/stars/sportsdataverse/cfbfastR.svg?color=eee&logo=github&style=for-the-badge&label=Star%20cfbfastR&maxAge=2592000)](https://github.com/sportsdataverse/cfbfastR/stargazers/)

## **Our Authors**

-   [Saiem Gilani](https://x.com/saiemgilani)
@saiemgilani
@saiemgilani

-   [Akshay Easwaran](https://x.com/akeaswaran)
@akeaswaran
@akeaswaran

-   [Jared Lee](https://x.com/JaredDLee) 
@JaredDLee @Kazink36 - [Eric Hess](https://x.com/arbitanalytics)
@arbitanalytics @ehess # **Our Contributors (they're awesome)** - [Nate Manzo](https://x.com/cfbnate) @cfbnate @natemanzo - [Michael Egle](https://x.com/deceptivespeed_) @deceptivespeed_ @michaelegle - [Jason DeLoach](https://x.com/CFBNumbers) @CFBNumbers @CFBNumbers - [Tej Seth](https://x.com/tejfbanalytics) @Tejseth41 @tejseth - [Conor McQuiston](https://x.com/ConorMcQ5) @ConorMcQ5 @mcqconor - [Tan Ho](https://x.com/_TanHo) @_TanHo @tanho63 - [Keegan Abdoo](https://x.com/KeeganAbdoo) @KeeganAbdoo @keegan-abdoo - [Matt Spencer](https://x.com/Maatspencer) @Maatspencer @Maatspencer - [Sebastian Carl](https://x.com/mrcaseb) @mrcaseb @mrcaseb - [John Edwards](https://x.com/John_B_Edwards)
@John_B_Edwards @john-b-edwards - [Brad Hill](https://x.com/bradisblogging)
@bradisblogging @bradisbrad # **Authors Emeritus - `cfbscrapR`[archived]** - [Meyappan Subbiah](https://x.com/msubbaiah1) @msubbaiah1 @meysubb - [Parker Fleming](https://x.com/statsowar) @statsowar @spfleming # **Special Thanks** - [Nick Tice](https://github.com/NickTice) ## **Citations** To cite the [**`cfbfastR`**](https://cfbfastR.sportsdataverse.org/) R package in publications, use: BibTex Citation ```bibtex @misc{gilani_et_al_2021_cfbfastr, author = {Saiem Gilani and Akshay Easwaran and Jared Lee and Eric Hess}, title = {cfbfastR: The SportsDataverse's R Package for College Football Data.}, url = {https://cfbfastR.sportsdataverse.org/}, year = {2021} } ```

Owner

  • Name: SportsDataverse
  • Login: sportsdataverse
  • Kind: organization
  • Email: sportsdataverse@gmail.com

GitHub Events

Total
  • Issues event: 4
  • Watch event: 8
  • Delete event: 1
  • Issue comment event: 22
  • Push event: 54
  • Pull request event: 10
  • Pull request review comment event: 100
  • Pull request review event: 70
  • Create event: 3
Last Year
  • Issues event: 4
  • Watch event: 8
  • Delete event: 1
  • Issue comment event: 22
  • Push event: 54
  • Pull request event: 10
  • Pull request review comment event: 100
  • Pull request review event: 70
  • Create event: 3

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 298
  • Total Committers: 30
  • Avg Commits per committer: 9.933
  • Development Distribution Score (DDS): 0.191
Past Year
  • Commits: 3
  • Committers: 2
  • Avg Commits per committer: 1.5
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Saiem Gilani s****i@g****m 241
mcqconor c****n@g****m 11
Jared Lee 6****6 10
Akshay Easwaran a****n 7
mrcaseb r****e@g****m 4
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
runner r****r@M****l 1
Tan Ho 3****3 1
Matt Spencer m****r@g****m 1
Keegan Abdoo k****o@g****m 1
soricinae s****e@g****m 1
Geoffrey Grosenbach 2****y 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 36
  • Total pull requests: 80
  • Average time to close issues: 2 months
  • Average time to close pull requests: 11 days
  • Total issue authors: 27
  • Total pull request authors: 11
  • Average comments per issue: 1.81
  • Average comments per pull request: 0.84
  • Merged pull requests: 74
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 2
  • Pull requests: 9
  • Average time to close issues: N/A
  • Average time to close pull requests: 1 day
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 2.67
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • maatspencer (3)
  • john-b-edwards (2)
  • rchanks (2)
  • saiemgilani (2)
  • JerrickBackous (2)
  • TJLSmith0831 (2)
  • rebinion (2)
  • aaronmorrisNC (2)
  • rcpiv (1)
  • titaniumtroop (1)
  • Colinifer (1)
  • jacole3 (1)
  • avkrishnamurthy (1)
  • math-mcshane (1)
  • soricinae (1)
Pull Request Authors
  • saiemgilani (52)
  • Kazink36 (8)
  • akeaswaran (5)
  • bradisbrad (4)
  • maatspencer (3)
  • soricinae (2)
  • sweep-ai[bot] (2)
  • mrcaseb (1)
  • tanho63 (1)
  • topfunky (1)
  • mcqconor (1)
Top Labels
Issue Labels
bug (5) enhancement (4) good first issue (2) documentation (2) question (1) invalid (1)
Pull Request Labels
bug (8) enhancement (5) documentation (5) sweep (2)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 428 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 4
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: cfbfastR

Access College Football Play by Play Data

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 4
  • Downloads: 428 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.6%
Stargazers count: 5.5%
Forks count: 7.3%
Average: 12.3%
Dependent repos count: 14.6%
Downloads: 16.8%
Dependent packages count: 28.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.0.0 depends
  • Rcpp >= 1.0.7 imports
  • RcppParallel >= 5.1.4 imports
  • cli >= 3.0.0 imports
  • data.table >= 1.14.0 imports
  • dplyr * imports
  • glue * imports
  • httr * imports
  • janitor * imports
  • jsonlite * imports
  • magrittr * imports
  • mgcv >= 1.8 imports
  • nnet * imports
  • progressr >= 0.6.0 imports
  • purrr >= 0.3.0 imports
  • rlang * imports
  • stringr >= 1.3.0 imports
  • tibble >= 3.0 imports
  • tidyr >= 1.0.0 imports
  • DBI * suggests
  • RSQLite * suggests
  • crayon >= 1.3.4 suggests
  • curl * suggests
  • ggplot2 * suggests
  • ggrepel * suggests
  • qs >= 0.25.1 suggests
  • rmarkdown * suggests
  • stats * suggests
  • stringi * suggests
  • testthat * suggests
  • usethis >= 1.6.0 suggests
  • xgboost >= 1.1 suggests