mlb_game_wp | R Documentation |
Acquire win probability for Major and Minor League games
mlb_game_wp(game_pk, timecode = NULL)
game_pk |
The game_pk for the game requested |
timecode |
The time code for the MLB game (format: MMDDYYYY_HHMMSS) |
Returns a tibble that includes time codes from the game_pk requested
col_name | types |
home_team_win_probability | numeric |
away_team_win_probability | numeric |
home_team_win_probability_added | numeric |
at_bat_index | integer |
leverage_index | numeric |
try(mlb_game_wp(game_pk = 531060))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.