View source: R/table_functions.R
make_2pt_table_data | R Documentation |
Get a table with the probabilities associated with a 2-pt decision.
make_2pt_table_data(probs)
probs |
A data frame consisting of one play that has had |
A table showing the probabilities associated with each possible choice.
play <-
tibble::tibble(
# things to help find the right game (use "reg" or "post")
home_team = "GB",
away_team = "TB",
posteam = "GB",
type = "post",
season = 2020,
# information about the situation
qtr = 4,
quarter_seconds_remaining = 123,
score_differential = -2,
home_opening_kickoff = 0,
posteam_timeouts_remaining = 3,
defteam_timeouts_remaining = 3
)
probs <- nfl4th::add_2pt_probs(play)
nfl4th::make_2pt_table_data(probs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.