win_probability: NBA games win probabilities

View source: R/play_by_play.R

win_probabilityR Documentation

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

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

abresler/nbastatR documentation built on Nov. 9, 2023, 2:33 p.m.