R/sample_drives.R
sample_drives.Rd
Sample a Series of Drives, a strategy to test verses the normal strategy
sample_drives(
n_sims,
from_yard_line = 25,
play_by_play_data,
strategy = "normal",
single_drive = FALSE,
progress = TRUE,
...
)
The number of simulations
The starting field position (defaults to 25)
A data file from nflscrapR prepped using the prep_pbp_data.R function
"normal", "passes_rushes", or "fourth_downs"
TRUE indicates only a single drive, otherwise, drives sampled until a score occurs
logical for inclusion of a progress bar
Additional arguments for different strategies
A data.frame of drives
if (FALSE) {
sample_drives(2, 25, dt)
}