Learn R Programming

nbastatR (version 0.1.12031)

win_probability: NBA games win probabilities

Description

Gets nba in-game win probabilities for specified game ids

Usage

win_probability(game_ids = c(21700002, 21700003), nest_data = FALSE,
  filter_non_plays = FALSE, return_message = TRUE)

Arguments

game_ids

vector of game ids

nest_data

if TRUE nests data

filter_non_plays

if TRUE filters out non plays

return_message

if T returns message

Value

a tibble

a `tibble`

See Also

Other game: box_scores, fanduel_summary, game_logs

Other season: fanduel_summary

Examples

Run this code
# NOT RUN {
win_probability(game_ids = c(21700002, 21700005), filter_non_plays = T,
nest_data = FALSE,
return_message = TRUE)
# }

Run the code above in your browser using DataLab