load_4th_pbp | R Documentation |
nflfastR
dataLoad calculated 4th down probabilities from nflfastR
data.
load_4th_pbp(seasons, fast = FALSE)
seasons |
Seasons to load. Must be 2014 and later. |
fast |
Defaults to FALSE. If TRUE, loads pre-computed decisions from repository |
nflfastR
data on 4th downs with the add_4th_probs()
columns added and also the following:
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.
try({# Wrap in try to avoid CRAN test problems
probs <- load_4th_pbp(2019:2020)
dplyr::glimpse(probs)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.