Package: NFLSimulatoR 0.4.0

NFLSimulatoR: 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/>.

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

NFLSimulatoR_0.4.0.tar.gz
NFLSimulatoR_0.4.0.zip(r-4.7)NFLSimulatoR_0.4.0.zip(r-4.6)NFLSimulatoR_0.4.0.zip(r-4.5)
NFLSimulatoR_0.4.0.tgz(r-4.6-any)NFLSimulatoR_0.4.0.tgz(r-4.5-any)
NFLSimulatoR_0.4.0.tar.gz(r-4.7-any)NFLSimulatoR_0.4.0.tar.gz(r-4.6-any)
NFLSimulatoR_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
NFLSimulatoR/json (API)

# Install 'NFLSimulatoR' in R:
install.packages('NFLSimulatoR', repos = c('https://rtelmore.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rtelmore/nflsimulator/issues

On CRAN:

Conda:

5.56 score 18 stars 6 scripts 224 downloads 7 exports 51 dependencies

Last updated from:44ccf3e55b. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE126
source / vignettesOK186
linux-release-x86_64NOTE126
macos-release-arm64NOTE167
macos-oldrel-arm64NOTE130
windows-develNOTE74
windows-releaseNOTE83
windows-oldrelNOTE64
wasm-releaseOK107

Exports:down_distance_updaterexpected_pts_fourthprep_pbp_datasample_drivessample_fourth_down_strategysample_passes_rushes_strategysample_play

Dependencies:cachemclicodetoolscpp11crayoncurldata.tabledigestdplyrfastmapfastrmodelsfurrrfuturegenericsglobalsgluehmsjanitorjsonlitelatticelifecyclelistenvlubridatemagrittrMatrixmemoisemgcvnflfastRnflreadrnlmeparallellypillarpkgconfigprettyunitsprogressprogressrpurrrR6rappdirsrlangsnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswithrxgboost

Basic Functionality in NFLSimulator
Introduction | Downloading and Prepping the Data | Basic Sample Play | Sample Play Specified Pass/Rush Blend | Sample Play Fourth Down Strategies | Sample Drives Function

Last update: 2022-08-17
Started: 2021-01-01

Generating a Series of Drives in NFLSimulatoR
Downloading and Prepping the Data | Simulating Drives based on Pass Proportion | Simulating Drives based on Fourth Down Strategies | Adding a Layer to the Passes Rushes Simulations | Downloading and filtering data based on team Passer Rating (RTG) | Running the RTG Simulations

Last update: 2022-08-17
Started: 2021-01-31