load_4th_pbp {nfl4th} | R Documentation |
Load calculated 4th down probabilities from nflfastR
data
Description
Load calculated 4th down probabilities from nflfastR
data.
Usage
load_4th_pbp(seasons, fast = FALSE)
Arguments
seasons |
Seasons to load. Must be 2014 and later. |
fast |
Defaults to FALSE. If TRUE, loads pre-computed decisions from repository |
Value
nflfastR
data on 4th downs with the add_4th_probs()
columns added and also the following:
- go
100 if a team went for it on 4th down, 0 otherwise. It's 100 and 0 as a convenience for obtaining percent of times going for it.
Examples
try({# Wrap in try to avoid CRAN test problems
probs <- load_4th_pbp(2019:2020)
dplyr::glimpse(probs)
})
[Package nfl4th version 1.0.4 Index]