mlb_game_wp function

Acquire win probability for Major and Minor League games

Acquire win probability for Major and Minor League games

mlb_game_wp(game_pk, timecode = NULL)

Arguments

  • game_pk: The game_pk for the game requested
  • timecode: The time code for the MLB game (format: MMDDYYYY_HHMMSS)

Returns

Returns a tibble that includes time codes from the game_pk requested

col_nametypes
home_team_win_probabilitynumeric
away_team_win_probabilitynumeric
home_team_win_probability_addednumeric
at_bat_indexinteger
leverage_indexnumeric

Examples

try(mlb_game_wp(game_pk = 531060))