Simulating Plays and Drives in the NFL

The intent here is to enable the simulation of plays/drives and evaluate game-play strategies in the National Football League (NFL). Built-in strategies include going for it on fourth down and varying the proportion of passing/rushing plays during a drive. The user should be familiar with nflscrapR data before trying to write his/her own strategies. This work is inspired by a blog post by Mike Lopez, currently the Director of Data and Analytics at the NFL, Lopez (2019) < https://statsbylopez.netlify.app/post/resampling-nfl-drives/>.


NFLSimulatoR

Simulating plays and drives in the NFL using nflscrapR or nflfastR data.

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge CRAN RStudio mirror downloads R build status

Website

The NFLSimulatoR package website is hosted at https://datacolorado.com/r/NFLSimulatoR.

Overview

The intent of NFLSimulatoR (version 0.1.0) is to enable the simulation of plays/drives and evaluate game-play strategies in the National Football League (NFL). Built-in strategies include going for it on fourth down and varying the proportion of passing/rushing plays during a drive. The user should be familiar with nflscrapR data before trying to write his/her own strategies. The package itself is inspired by a blog post by Mike Lopez, currently the Director of Data and Analytics at the NFL.

Getting Started

If you are just getting started with NFLSimulatoR, we recommend reading an upcoming paper related to use cases.

Installation Instructions

From CRAN (v0.3.0):

install.packages("NFLSimulatoR")

The latest developmental version from GitHub (v0.3.1):

install.packages("remotes")
remotes::install_github("rtelmore/NFLSimulatoR")

Resources

  • Open an issue (GitHub issues for bug reports, feature requests, etc.)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("NFLSimulatoR")

0.4.0 by Ryan Elmore, 4 years ago


https://github.com/rtelmore/NFLSimulatoR/


Report a bug at https://github.com/rtelmore/NFLSimulatoR/issues/


Browse source code at https://github.com/cran/NFLSimulatoR


Authors: Ryan Elmore [cre, aut] , Ben Williams [aut] , Will Palmquist [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports data.table, progress, nflfastR

Suggests knitr, rmarkdown


See at CRAN