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.7-any)NFLSimulatoR_0.4.0.zip(r-4.6-any)NFLSimulatoR_0.4.0.zip(r-4.5-any)
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
Last updated from:44ccf3e55b. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | NOTE | 113 | ||
| source / vignettes | OK | 608 | ||
| linux-release | NOTE | 116 | ||
| macos-release | NOTE | 198 | ||
| macos-oldrel | NOTE | 186 | ||
| windows-devel | NOTE | 74 | ||
| windows-release | NOTE | 58 | ||
| windows-oldrel | NOTE | 69 | ||
| wasm-release | OK | 99 |
Exports:down_distance_updaterexpected_pts_fourthprep_pbp_datasample_drivessample_fourth_down_strategysample_passes_rushes_strategysample_play
Dependencies:cachemclicodetoolscpp11crayoncurldata.tabledigestdplyrfastmapfastrmodelsfurrrfuturegenericsglobalsgluehmsjanitorjsonlitelatticelifecyclelistenvlubridatemagrittrMatrixmemoisemgcvnflfastRnflreadrnlmeparallellypillarpkgconfigprettyunitsprogressprogressrpurrrR6rappdirsrlangsnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswithrxgboost
Last update: 2022-08-17
Started: 2021-01-01
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 |