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:
NFLSimulatoR_0.4.0.tar.gz
NFLSimulatoR_0.4.0.zip(r-4.5)NFLSimulatoR_0.4.0.zip(r-4.4)NFLSimulatoR_0.4.0.zip(r-4.3)
NFLSimulatoR_0.4.0.tgz(r-4.4-any)NFLSimulatoR_0.4.0.tgz(r-4.3-any)
NFLSimulatoR_0.4.0.tar.gz(r-4.5-noble)NFLSimulatoR_0.4.0.tar.gz(r-4.4-noble)
NFLSimulatoR_0.4.0.tgz(r-4.4-emscripten)NFLSimulatoR_0.4.0.tgz(r-4.3-emscripten)
NFLSimulatoR.pdf |NFLSimulatoR.html✨
NFLSimulatoR/json (API)
NEWS
# 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
Last updated 2 years agofrom:44ccf3e55b. Checks:OK: 1 NOTE: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 26 2024 |
R-4.5-win | NOTE | Oct 26 2024 |
R-4.5-linux | NOTE | Oct 26 2024 |
R-4.4-win | NOTE | Oct 26 2024 |
R-4.4-mac | NOTE | Oct 26 2024 |
R-4.3-win | NOTE | Oct 26 2024 |
R-4.3-mac | NOTE | Oct 26 2024 |
Exports:down_distance_updaterexpected_pts_fourthprep_pbp_datasample_drivessample_fourth_down_strategysample_passes_rushes_strategysample_play
Dependencies:cachemclicodetoolscpp11crayoncurldata.tabledigestdplyrfansifastmapfastrmodelsfurrrfuturegenericsglobalsgluehmsjanitorjsonlitelatticelifecyclelistenvlubridatemagrittrMatrixmemoisemgcvnflfastRnflreadrnlmeparallellypillarpkgconfigprettyunitsprogressprogressrpurrrR6rappdirsrlangsnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswithrxgboost
Basic Functionality in NFLSimulator
Rendered fromnflsimulator-basics.Rmd
usingknitr::rmarkdown
on Oct 26 2024.Last update: 2022-08-17
Started: 2021-01-01
Generating a Series of Drives in NFLSimulatoR
Rendered fromnflsimulator-generate-drives.Rmd
usingknitr::rmarkdown
on Oct 26 2024.Last update: 2022-08-17
Started: 2021-01-31
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Update the down and distance of a drive | down_distance_updater |
Decision for 4th downs based on expected points | expected_pts_fourth |
Add necessary columns to nflscrapR data | prep_pbp_data |
Sample a Series of Drives, a strategy to test verses the normal strategy | sample_drives |
Sample NFL play-by-play data with a specified 4th down strategy | sample_fourth_down_strategy |
Sample NFL play-by-play data with a specified blend of rushing and passing | sample_passes_rushes_strategy |
Sample one NFL play according to some strategy | sample_play |